{"name":"BIS_fnc_call","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"params","type":"Anything","optional":false,"default":null,"description":"function arguments","types":["Anything"],"since":null,"text":"params: Anything - function arguments"},{"name":"code","type":"Code","optional":false,"default":null,"description":"function code","types":["Code"],"since":null,"text":"code: Code - function code"}],"returns":{"type":"Anything","types":["Anything"],"description":null,"text":"Anything"}},{"syntax":"code call BIS_fnc_call","since":null,"effect":null,"exec":null,"params":[{"name":"code","type":"Code","optional":false,"default":null,"description":null,"types":["Code"],"since":null,"text":"code: Code"}],"returns":{"type":"Anything","types":["Anything"],"description":null,"text":"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;"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Program Flow","Functions","Introduced with Arma 3 version 0.50"],"docblock":null,"filled_from_docblock":[]}