Skip to content

73 — Set ambient light...

Gives the scenario a new ambient light level, in hundredths, 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. This is not the fraction the Ambient key of a map is written as, so 1 here is a hundredth of daylight rather than daylight.
Caveats
  • While an ion storm is running the new level is stored but not faded to, and the map moves toward it once the storm clears.
  • The level is only reached at the pace the fade step and fade rate allow, and a fade that is already under way is redirected to the new level rather than finished first.
  • Setting the level the light is already at changes nothing on screen and springs no ambient light event, since those events are only examined on a frame the fade actually steps on.