Event scripts are scripts which are executed by the game engine upon specific events.
To use an event script, create a file of given name in the mission directory.
pauseOnLoad.sqf Executed when pause menu is activated.
initPlayerServer.sqf Executed only on server when a player joins mission (includes both mission start and JIP). See Initialization Order for details about when the script is exactly executed.
This script relies on BIS_fnc_execVM and remoteExec. If CfgRemoteExec's class Functions is set to mode = 0 or 1, the script will never be executed. Therefore, initPlayerServer.sqf should be avoided.
Additional init scripts can be executed using functions with preInit or postInit attribute.
This page was last edited on 9 April 2019, at 13:57.