Skip to content

73 — Set ambient light...

Sets the scenario's ambient light level, in hundredths of full daylight, and fades the map toward it.

Editor data
Numeric ID
73
Engine ID
TACTION_SET_AMBIENT_LIGHT
Editor name
Set ambient light...
Need token
NEED_NUMBER
Parameters
  1. Numberinteger
Attachment
none
INI example
[Actions]
<TriggerID>=1,73,0,<Number>,0,0,0,0,

Valid values

  • A light level in hundredths, where 100 is full daylight. The map's Ambient key gives the level as a fraction instead, so 1 here is one hundredth of daylight.
Caveats
  • The light moves toward the new level one step at a time, at the pace [AmbientChangeStep](/keys/ambientchangestep/) and [AmbientChangeRate](/keys/ambientchangerate/) set. A fade in progress turns toward the new level without finishing first.
  • During an ion storm the new level is stored, but the light keeps the storm's level. The map fades to the new level when the storm ends.
  • Setting the level the light already has changes nothing on screen and springs no ambient light event. Those events are tested only after a fade step.