gmqcc/tests/fieldparms.qc

18 lines
251 B
C++
Raw Normal View History

2012-11-17 08:31:23 +00:00
void(string, string) print = #1;
entity() spawn = #3;
.string a;
.string b;
void(entity e, .string s) callout = {
print(e.s, "\n");
};
void() main = {
local entity e;
e = spawn();
e.a = "foo";
e.b = "bar";
callout(e, b);
};