{"name":"BIS_fnc_execVM","title":"BIS fnc execVM","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_execVM","revid":336359,"updated":"2022-12-29T08:50:08Z","groups":["Program Flow"],"status":"deprecated","replaced_by":["remoteExec","remoteExecCall"],"games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"effect":"local"},"description":"> [!CAUTION]\n> This information is **obsolete** as of Arma 3 v1.50. Reason: use remoteExec/remoteExecCall instead.\n\nexecVM desired script with desired argument(s). This function is only really useful when combined with BIS_fnc_MP to execute a script remotely.","syntaxes":[{"syntax":"filename call BIS_fnc_execVM","params":[{"name":"filename","type":"String","type_expr":"String"}],"returns":{"type":"Script Handle","type_expr":"Script Handle","description":"can be used to determine (via scriptDone) when the script has finished."}},{"syntax":"[arguments, filename] call BIS_fnc_execVM","params":[{"name":"arguments","type":"Anything","description":"arguments are passed to script as magic variable _this.","type_expr":"Anything"},{"name":"filename","type":"String","type_expr":"String"}],"returns":{"type":"Script Handle","type_expr":"Script Handle","description":"can be used to determine (via scriptDone) when the script has finished."}}],"examples":[{"code":["\"Bonus\\initializeExtras.sqf\" call BIS_fnc_execVM;"]},{"code":["[player, \"reposition.sqf\"] call BIS_fnc_execVM;"]},{"code":["// before Arma 3 v1.50\n[[[_param1, _param2], \"addBonus.sqf\"], \"BIS_fnc_execVM\", true] call BIS_fnc_MP;\n\n// since Arma 3 v1.50\n[[_param1, _param2], \"addBonus.sqf\"] remoteExec [\"execVM\"];"]}],"see_also":["BIS_fnc_execFSM","BIS_fnc_execRemote","BIS_fnc_spawn","BIS_fnc_call"]}