57 — Local Clear...
Clears one of the scenario's fifty local variables.
Editor data
- Numeric ID
57- Engine ID
TACTION_CLEAR_LOCAL- Editor name
- Local Clear...
- Need token
NEED_LOCAL- Parameters
- Local variable
local-variable
- Local variable
- Attachment
- none
INI example
[Actions]
<TriggerID>=1,57,0,<Local variable>,0,0,0,0,Valid values
- A local variable number from 0 to 49. A number outside that range does nothing at all.
Caveats
- Clearing a local that is already clear does nothing further. Everything the action produces beyond the stored value follows from the value changing, so a firing on a local that was never set raises no events and restarts no countdown.
- A change that does happen is what admits the variable events to evaluation at all, and the mark it raises is one for the whole scenario rather than one per variable. While it stands, every tag on the general list is offered the local-set, local-clear, global-set and global-clear events alike, so changing one variable is what lets a trigger waiting on a different one fire.
- Changing a local also restarts the elapsed-time countdown of every trigger with an event naming that local, wherever in the scenario it sits.
- Locals are not cleared between scenarios, so a local the map declares without a starting state may already hold whatever the previous mission left in it, and clearing it can be a real change rather than a formality.