ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "AmbientChangeRate"
From ModEnc
(Un-Deezire'd) |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{Flag |
− | + | |name={{PAGENAME}} | |
+ | |files={{Categ|rules(md).ini}} | ||
+ | |types={{Categ|AudioVisual}} | ||
+ | |values={{Values|float}} | ||
+ | |ts=yes | ||
+ | |fs=yes | ||
+ | |ra2=yes | ||
+ | |yr=yes | ||
+ | }} | ||
+ | |||
+ | Specifies the default rate at which [[ambient]] light is recalculated. When the ambient lighting level in a [[map]] is changed via [[triggers|trigger]] action #73, the game waits this many minutes{{fnl|1}} between each step of lighting increase or decrease. This delay can be changed with action #72. The actual amount of lighting changed in each step is defined by {{f|AmbientChangeStep|link}}. | ||
+ | |||
+ | {{fn|1|on default speed, meaning 900 [[frames]].}} | ||
+ | |||
+ | {{bugs}} | ||
+ | |||
+ | If {{f|{{PAGENAME}}}} is defined in [[map]] code, you must also redefine {{f|ExtraUnitLight|link}}, {{f|ExtraInfantryLight|link}} and {{f|ExtraAircraftLight|link}}, else these are reset to 0.0. | ||
+ | |||
+ | ==See Also== | ||
+ | * [[AmbientChangeStep]] | ||
+ | * [[Ambient]] | ||
+ | * [[IonAmbient]] |
Revision as of 13:30, 4 December 2020
Flag: | AmbientChangeRate |
File(s): | rules(md).ini |
Values: | Floating point values: Any decimal number (clearer range should be added in Template:Values). |
Applicable to: | AudioVisual |
Specifies the default rate at which ambient light is recalculated. When the ambient lighting level in a map is changed via trigger action #73, the game waits this many minutes1 between each step of lighting increase or decrease. This delay can be changed with action #72. The actual amount of lighting changed in each step is defined by AmbientChangeStep.
1 ↑ on default speed, meaning 900 frames.
Bugs/Side-Effects/Unexpected Limitations
If AmbientChangeRate is defined in map code, you must also redefine ExtraUnitLight, ExtraInfantryLight and ExtraAircraftLight, else these are reset to 0.0.