{"name":"BIS_fnc_onLoad","title":"BIS fnc onLoad","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_onLoad","revid":328472,"updated":"2022-07-13T16:11:09Z","groups":["Event Handlers"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Register code to be executed after a mission load (from a save, for example).\n\n> [!IMPORTANT]\n> Replaced by \"loaded\" mission event handler.\n> This function now exists only because of backward compatibility","syntaxes":[{"syntax":"parameter call BIS_fnc_onLoad","params":[{"name":"parameter","type":"Code or Number:","description":"Code or Number:\n\n- Code - code to be executed on mission load\n- Number - index of code to remove","type_expr":"Code | Number","text":"parameter: Code or Number:\n\n- Code - code to be executed on mission load\n- Number - index of code to remove"}],"returns":{"type":"Number","type_expr":"Number","description":"index of onLoad code"}}],"examples":[{"code":["private _codeIndex = { hint \"Welcome back!\"; } call BIS_fnc_onLoad;"]},{"code":["0 call BIS_fnc_onLoad; // removes code with index 0"]}],"see_also":["Arma 3: Mission Event Handlers","addMissionEventHandler"]}