Skip to content

36 — Local is set...

Satisfied while the named local variable is set.

Editor data
Numeric ID
36
Engine ID
TEVENT_LOCAL_SET
Editor name
Local is set...
Need token
NEED_LOCAL
Parameters
  1. Local variablelocal-variable
Attachment
general
INI example
[Events]
<TriggerID>=1,36,0,<Local variable>

Valid values

  • A local variable number from 0 to 49. The map declares its locals in [VariableNames], each with a name and an optional starting state.
  • A number outside 0 to 49 gives an unpredictable result. The event may or may not be satisfied.
Caveats
  • A local the map declares with a starting state of 1 is set from the first frame, so the event is satisfied on the first frame.
  • Locals are not reset when a new scenario starts. A local with no starting state in the map, including one the map does not declare, keeps the value it had at the end of the previous scenario played in the same session. Give every local this event tests a starting state.
  • The event is satisfied for as long as the local stays set. On a persistent tag, the trigger fires every frame over that time.
  • A change in the local's value restarts the countdown of every trigger with an event that names that local. Setting a local that is already set, or clearing one that is already clear, restarts nothing. Pair this event with [Elapsed Time...](/mapping/events/tevent-time/) to fire a set delay after the local changes.
  • A semi-persistent tag fires only while exactly one object or map cell holds it, and this event attaches the tag to neither. Use a volatile or a persistent tag.