summaryrefslogtreecommitdiffstats
path: root/Server/Functions/Server_HandleSPVF.sqf
blob: 3b955bf22357602d669e7a1bca0b347c62efdb3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
	description:
	 - New network system handler.
	note:
	 - addPublicVariableEventHandler is triggered everywhere BUT on the caller.
	usage:
	 - [server PVF to run, parameters]
*/

Private ["_parameters","_publicVar","_script"];
_publicVar = _this;

_script = _publicVar select 0;
_parameters = if (count _publicVar > 1) then {_publicVar select 1} else {[]};

_parameters Spawn (Call Compile _script);