JohnHSmith 0 Posted May 15, 2018 Hi, I want to disable the spectator mode for all players. The code for it is ["Terminate"] call BIS_fnc_EGSpectator; But how to execute on every player? This doesn't work eiter: [] remoteExec ["['Terminate'] call BIS_fnc_EGSpectator;",civilian]; Share this post Link to post Share on other sites
Harzach 2518 Posted May 15, 2018 Your syntax is off. Should be something along the lines of: ["Terminate"] remoteExec ["BIS_fnc_EGSpectator",civilian]; https://community.bistudio.com/wiki/remoteExec 2 Share this post Link to post Share on other sites
JohnHSmith 0 Posted May 24, 2018 On 5/15/2018 at 9:52 PM, Harzach said: Your syntax is off. Should be something along the lines of: ["Terminate"] remoteExec ["BIS_fnc_EGSpectator",civilian]; https://community.bistudio.com/wiki/remoteExec Okay, I tried. I executed the script within the init with following: [] remoteExec ["my_function",2]; so this is my_function: ["Terminate"] remoteExec ["BIS_fnc_EGSpectator",civilian]; This is not working. All other remoteExec's to civilian are working properly. Share this post Link to post Share on other sites
Harzach 2518 Posted May 24, 2018 Why are you remoteExec'ing a remoteExec? Anyway, "["Terminate"] call BIS_fnc_EGSpectator;" doesn't disable spectator mode, it terminates it where specified. At mission init, no one is in spectator, so there is no effect. Even then, when someone dies, spectator is still available. One option would be to run that code in onPlayerKilled.sqf, perhaps. The other is to use a different respawn type, such "NONE." But since spectator is available in the first place, I assume you want other sides to be able to use it. Assuming gets us nowhere, however. The more information you share, the less guesswork we have to do to help you. Share this post Link to post Share on other sites