This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| xg:class:sector_light [2019-11-26 08:51] – skyjake | xg:class:sector_light [2019-11-26 08:52] (current) – [Sector light (XG class)] skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Sector light (XG class) ====== | ||
| + | |||
| + | |||
| + | Class = sector_light | ||
| + | |||
| + | Changes the light level and color of one or more sectors. | ||
| + | |||
| + | |||
| + | ===== Parameters ===== | ||
| + | |||
| + | |||
| + | ^ Prm^ Name^ Type^ Meaning | | ||
| + | | Ip0, Ip1| Target Ref, | ||
| + | | Ip2| Change Light| Integer| If non-zero, the light level of the sectors will be changed. Otherwise the light level won't be modified. | | ||
| + | | Ip3| Change Color| Integer| If non-zero, the light color of the sectors will be changed. Otherwise the color of the light won't be modified. | | ||
| + | | Ip4| Light Ref| [[xg: | ||
| + | | Ip5| Light Delta| Integer| Offset to Ip4 [0...255]. | | ||
| + | | Ip6| Color Ref| [[xg: | ||
| + | | Ip7| Red Delta| Integer| Offset to the red component of sector light color [0...255]. | | ||
| + | | Ip8| Green Delta| Integer| Offset to the green component of sector light color [0...255]. | | ||
| + | | Ip9| Blue Delta| Integer| Offset to the blue component of sector light color [0...255]. | | ||
| + | |||
| + | |||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | | ||
| + | Line Type { | ||
| + | ID = 5041 | ||
| + | Flags = player_use | ||
| + | Flags2 = when_act | any | ||
| + | Class = sector_light | ||
| + | Type = timed_off | ||
| + | Count = -1 | ||
| + | Time = 0.5 | ||
| + | Act sound = " | ||
| + | Target Ref = " | ||
| + | Change Light = 1 | ||
| + | Light Ref = " | ||
| + | Light Delta = -20 | ||
| + | } | ||
| + | |||
| + | |||
| + | |||