From Bohemia Interactive Community
- Str - c
- Posted on Jun 19, 2010 - 10:26 (UTC)
-
Can be used to detecting load. Scope with disabled serialization is discontinued after load, even if there's endless loop inside.
Works for all possible load types - loading user save, loading autosave and resuming mission from main menu.
Use with caution, as it creates an infinite loop, having impact at overall scripting time.
- Killzone_Kid - c
- Posted on Oct 23, 2013 - 02:57 (UTC)
-
If you do not store UI elements (Display, Control) in variables, you do not need disableSerialization; UI elements are usually returned by scripting commands such as findDisplay or passed as params in UI event handler scripts (displayAddEventHandler, ctrlAddEventHandler).
This code will require disableSerialization:
This code will not:
- Nelis75733126 - c
- Posted on Jun 25, 2017 - 18:15 (UTC)
-
In Arma 3 1.74, a scripted FSM is somehow incompatible with cdisableSerialization.
As a workaround, store a display inside an array. Example: