{"name":"remoteExecCall","title":"remoteExecCall","type":"command","url":"https://community.bistudio.com/wiki/remoteExecCall","revid":369336,"updated":"2024-09-03T18:43:00Z","groups":["Multiplayer"],"status":"ok","games":{"arma3":"1.50"},"since":"arma3 1.50","arma3_since":"1.50","description":"Unscheduled version of remoteExec. The only difference between remoteExec and remoteExecCall is that remoteExecCall will run **functions** in unscheduled environment.\n\n> [!IMPORTANT]\n> The \"Call\" in remoteExecCall only means that the remote execution will take place in unscheduled environment and does **not** mean it will happen right away (see Example 3).","syntaxes":[{"syntax":"see remoteExec","params":[{"name":"see remoteExec"}],"returns":{"type":"see remoteExec"}}],"examples":[{"text":"```sqf\n[\"hello\"] remoteExec [\"hint\"];        // runs unscheduled\n[\"hello\"] remoteExecCall [\"hint\"];    // no difference at all\n```","code":["[\"hello\"] remoteExec [\"hint\"];\t\t// runs unscheduled\n[\"hello\"] remoteExecCall [\"hint\"];\t// no difference at all"]},{"text":"```sqf\n[\"my message\"] remoteExec [\"BIS_fnc_infoText\"];        // correct\n[\"my message\"] remoteExecCall [\"BIS_fnc_infoText\"];    // wrong - BIS_fnc_infoText needs a scheduled environment, see its spawn need\n```","code":["[\"my message\"] remoteExec [\"BIS_fnc_infoText\"];\t\t// correct\n[\"my message\"] remoteExecCall [\"BIS_fnc_infoText\"];\t// wrong - BIS_fnc_infoText needs a scheduled environment, see its spawn need"]},{"text":"```sqf\nremoteExecCall [\"fnc1\"];\ncall fnc2;    // fnc1 may or may not be executed after fnc2\n\ncall fnc1;\ncall fnc2;    // fnc2 will be executed after fnc1\n```","code":["remoteExecCall [\"fnc1\"];\ncall fnc2;\t// fnc1 may or may not be executed after fnc2\n\ncall fnc1;\ncall fnc2;\t// fnc2 will be executed after fnc1"]}],"see_also":["remoteExec","remoteExecutedOwner","isRemoteExecuted","isRemoteExecutedJIP","Arma 3: Remote Execution","canSuspend","BIS_fnc_MP","remoteExecutedJIPID"],"categories_extra":["Arma 3: Remote Execution"]}