]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/gmqcc-src/tests/fieldparams.qc
By fteqcc, hello gmqcc
[voretournament/voretournament.git] / misc / source / gmqcc-src / tests / fieldparams.qc
diff --git a/misc/source/gmqcc-src/tests/fieldparams.qc b/misc/source/gmqcc-src/tests/fieldparams.qc
new file mode 100644 (file)
index 0000000..eed2ed6
--- /dev/null
@@ -0,0 +1,17 @@
+.string a;
+.string b;
+..string ps;
+
+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);
+    e.ps = a;
+    print(e.(e.ps), "\n");
+};