Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Questions about a quakeC script (C syntax)
  2. .string classname;
  3. .string netname;
  4.  
  5. void func()
  6. {
  7.     entity e;
  8.     e = spawn();
  9.     e.classname = "foo";
  10.     e.netname = "This ";
  11.     e = spawn();
  12.     e.classname = "foo";
  13.     e.netname = "is ";
  14.     e = spawn();
  15.     e.classname = "bar";
  16.     e.netname = "not ";
  17.     e = spawn();
  18.     e.classname = "foo";
  19.     e.netname = "working.n";
  20.  
  21.     for(e = world; (e = find(e, classname, "foo")); )
  22.         print(e.netname);
  23. }
  24.        
  25. This is working.