]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/fieldparams.qc
Merge branch 'master' into cooking
[xonotic/gmqcc.git] / tests / fieldparams.qc
1 .string a;
2 .string b;
3 ..string ps;
4
5 void(entity e, .string s) callout = {
6     print(e.s, "\n");
7 };
8
9 void() main = {
10     local entity e;
11     e = spawn();
12     e.a = "foo";
13     e.b = "bar";
14     callout(e, b);
15     e.ps = a;
16     print(e.(e.ps), "\n");
17 };