AmbientChangeStep
How far the ambient light moves on each step of a fade, as a fraction of full ambient light.
- Applies to
- global rules
- File
rules.ini- Section
[AudioVisual]- Value
- floating point
- When omitted
.1
Each step moves the ambient level toward its target by this fraction of full light. The step is converted to the hundredths that Ambient is stored in, so .1 moves the level by 10 hundredths. A step never passes the target, so the last step of a fade can be smaller.
The conversion truncates to whole hundredths. Floating-point rounding can take a value one hundredth lower, so .29 moves the level by 28 hundredths.
The Ambient light <= … and Ambient light >= … trigger events compare the current ambient level, which moves one step at a time. A trigger that waits for a new target level fires only when the fade reaches that level.
The Set ambient step… trigger action changes this value, and a saved game keeps the change. The change lasts until a later scenario loads a rules file or map that sets the key. If none sets AmbientChangeStep, later scenarios in the same session keep the changed value.