Hello there,
I created some functions which i am trying to spawn with some additional parameters. Nothing special so far.
[param1,param2] spawn MyFunction;
works as intended and the function works perfectly fine.
I am now trying to spawn this function globally so that its executed on each client.
I tried something like:
[[[param1,param2],MyFunction],"bis_fnc_spawn", true,true,false] call bis_fnc_mp;
Problem is: the function seems to get spawned but for some reason all the global variables used in the function aren't working anymore. although they were defined a few lines above the game says "Error: undefined variable in expression: MyGlobalVariable" or something similar. So my questions are:
-Is the way I spawned the function correct?
-If so what else could have screwed up my global variables(all I changed was how I executed the funtion)?
(If it matters I am using the functions within a mod to initialize some particle effects for all clients)