{"name":"endLoadingScreen","title":"endLoadingScreen","type":"command","url":"https://community.bistudio.com/wiki/endLoadingScreen","revid":376713,"updated":"2025-11-10T18:45:49Z","groups":["System"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"effect":"local"},"description":"Finishes loading screen started by startLoadingScreen.\n\n> [!NOTE]\n> **Arma 3:**\n>\n> - Use BIS_fnc_endLoadingScreen to prevent potential usage conflicts.\n> - Arma 3 v2.18 The loading screen can be force-ended with the ENDLOAD cheat code.","syntaxes":[{"syntax":"endLoadingScreen","params":[],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"nullary"}],"examples":[{"code":["startLoadingScreen [\"Loading My Mission\"];\n// code\nprogressLoadingScreen 0.5;\n// code\nendLoadingScreen;"]},{"text":"```sqf\n// this structure prevents error-prone or lengthy code to miss endLoadingScreen.\nprivate _maxTime = diag_tickTime + 30; // max 30s of loading\n\nstartLoadingScreen [\"Loading\"];\nprivate _handle = 0 spawn {\n    // code that may crash or take too long\n};\n\nwaitUntil { sleep .01; scriptDone _handle || diag_tickTime > _maxTime };\nendLoadingScreen;\n```","code":["// this structure prevents error-prone or lengthy code to miss endLoadingScreen.\nprivate _maxTime = diag_tickTime + 30; // max 30s of loading\n\nstartLoadingScreen [\"Loading\"];\nprivate _handle = 0 spawn {\n\t// code that may crash or take too long\n};\n\nwaitUntil { sleep .01; scriptDone _handle || diag_tickTime > _maxTime };\nendLoadingScreen;"]}],"see_also":["startLoadingScreen","progressLoadingScreen","BIS_fnc_endLoadingScreen"]}