{"name":"onPreloadStarted","operator":null,"title":"onPreloadStarted","type":"command","url":"https://community.bistudio.com/wiki/onPreloadStarted","revid":352159,"updated":"2024-02-01T23:25:23Z","groups":["Event Handlers"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Defines an action performed just before the preload screen started. Preload event occurs after briefing screen on mission start.\n\n> [!IMPORTANT]\n> This event handler also fires on client after user closes the main map.\n\n> [!NOTE]\n> Since **Arma 3** *v1.57* a stackable version of this EH is available: PreloadStarted\n\n> [!NOTE]\n> **Arma 3:** In order to keep compatibility between official and community content the functions BIS_fnc_addStackedEventHandler and BIS_fnc_removeStackedEventHandler should be used instead.","syntaxes":[{"syntax":"onPreloadStarted command","since":null,"effect":null,"exec":null,"params":[{"name":"command","type":"String or Code","optional":false,"default":null,"description":null,"types":["String","Code"],"since":null,"text":"command: String or Code"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"command","types":["String","Code"]}}],"examples":[{"text":"```sqf\nonPreloadStarted {diag_log \"preload started\"};\n```","code":["onPreloadStarted {diag_log \"preload started\"};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["onPreloadFinished"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Event Handlers","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}