From 68d4c9bbd80ed2e6528244569c79676b87295bd1 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:54:45 +0300 Subject: init --- Server/Functions/Server_HandleSPVF.sqf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Server/Functions/Server_HandleSPVF.sqf (limited to 'Server/Functions/Server_HandleSPVF.sqf') diff --git a/Server/Functions/Server_HandleSPVF.sqf b/Server/Functions/Server_HandleSPVF.sqf new file mode 100644 index 0000000..3b955bf --- /dev/null +++ b/Server/Functions/Server_HandleSPVF.sqf @@ -0,0 +1,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); \ No newline at end of file -- cgit v1.3.1