Jump to content

LightIntensity: Difference between revisions

From ModEnc²
en>Silverwind
No edit summary
en>Crimsonum
Added a mention of a reset bug.
Line 2: Line 2:
|files={{Categ|ini=rules}}
|files={{Categ|ini=rules}}
|values={{values|float}}
|values={{values|float}}
|special=
|default=0.0
|default=0.0
|extver=
|types={{Categ|BuildingTypes}}
|types={{Categ|BuildingTypes}}
|ra2obsolete=
|tsobsolete=
|rponly=
|aresflag=
|hpflag=
|ts=yes
|ts=yes
|fs=yes
|fs=yes
Line 19: Line 12:
Specifies the amount light radiated by this [[BuildingType]]. Positive values increase the intensity of emitted light, while negative values 'absorb' existing light. 0.0 (the default value) disables lighting.
Specifies the amount light radiated by this [[BuildingType]]. Positive values increase the intensity of emitted light, while negative values 'absorb' existing light. 0.0 (the default value) disables lighting.


{{bugs}}
If you insert this BuildingType's section into [[map]] or game mode code, you must also redefine this flag in it or the game won't read anything after the decimal point in the [[rules]] value.


==See also==
==See also==
Line 25: Line 21:
* [[LightGreenTint]]
* [[LightGreenTint]]
* [[LightBlueTint]]
* [[LightBlueTint]]
[[Category:Resetting Flags]]

Revision as of 14:26, 4 December 2020

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: LightIntensity
File(s): rules(md).ini
Values: Floating point values: Any decimal number (clearer range should be added in Template:Values).
Default: 0.0
Applicable to: BuildingTypes


Specifies the amount light radiated by this BuildingType. Positive values increase the intensity of emitted light, while negative values 'absorb' existing light. 0.0 (the default value) disables lighting.

Bugs/Side-Effects/Unexpected Limitations

If you insert this BuildingType's section into map or game mode code, you must also redefine this flag in it or the game won't read anything after the decimal point in the rules value.

See also