From Bohemia Interactive Community
Notes
Can be used to detecting load. Scope with disabled serialization is discontinued after load, even if there's endless loop inside.
_loaded = [] spawn {disableSerialization; waitUntil {false};};
waitUntil {scriptDone _loaded;};
hint "Game was loaded!"
Works for all possible load types - loading user save, loading autosave and resuming mission from main menu.
Use with caution, as it handles two threads in memory, having impact at overall scripting time.
Bottom Section