{"name":"BIS_fnc_call","title":"BIS fnc call","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_call","revid":327597,"updated":"2022-07-13T09:49:02Z","groups":["Program Flow"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Execute given code with or without parameter.\n\n> [!NOTE]\n> **Arma 3:** Since Arma 3 v1.50, use remoteExec/remoteExecCall instead.","syntaxes":[{"syntax":"[params, code] call BIS_fnc_call","params":[{"name":"params","type":"Anything","description":"function arguments","type_expr":"Anything"},{"name":"code","type":"Code","description":"function code","type_expr":"Code"}],"returns":{"type":"Anything","type_expr":"Anything"}},{"syntax":"code call BIS_fnc_call","params":[{"name":"code","type":"Code","type_expr":"Code"}],"returns":{"type":"Anything","type_expr":"Anything"}}],"examples":[{"text":"Show a message for the current player.\n\n```sqf\n[[\"Hello\"], {hint (_this select 0);}] call BIS_fnc_call;\n```","code":["[[\"Hello\"], {hint (_this select 0);}] call BIS_fnc_call;"]},{"text":"Alternative syntax\n\n```sqf\n{ hint \"Hello\"; } call BIS_fnc_call;\n```","code":["{ hint \"Hello\"; } call BIS_fnc_call;"]}],"see_also":["remoteExec","remoteExecCall","BIS_fnc_spawn","BIS_fnc_execVM","BIS_fnc_execFSM","BIS_fnc_execRemote"],"notes":[{"user":"Strangepete","date":"2014-11-30T02:22:00Z","text":"As of writing (ver. 1.37) BIS_fnc_call is only a wrapper for BIS_fnc_spawn. Both functions use call to execute the code."}]}