Skip to content

45 — Ambient light <= ...

Satisfied while the scenario's ambient light is at or below the given percentage of full daylight.

Editor data
Numeric ID
45
Engine ID
TEVENT_AMBIENT_LESS_THAN
Editor name
Ambient light <= ...
Need token
NEED_NUMBER
Parameters
  1. Numberinteger
Attachment
general
INI example
[Events]
<TriggerID>=1,45,0,<Number>

Valid values

  • A percentage, where 100 is the light level a map writes as Ambient=1. The event is satisfied while the current level is at or below the number.
Caveats
  • The level is not capped at 100. A map with Ambient= above 1 starts above 100, for example 135 for Ambient=1.35.
  • The event tests the current level, which fades toward a new target at the pace AmbientChangeStep and AmbientChangeRate set.
  • An ion storm fades the level toward the map's IonAmbient and back to its ordinary level when the storm ends.
  • Set ambient light... sets a new target level. During an ion storm it changes only the level the map returns to when the storm ends. Set ambient step... and Set ambient rate... change the fade.
  • The event is tested every frame, so a persistent tag fires every frame while the level stays at or below the number.
  • Give the trigger a volatile or a persistent tag. This event puts its tag only on the general list, which does not count toward the attachments a semi-persistent tag waits on. A semi-persistent tag therefore never fires unless an object or a map cell also holds it.