light

Vars | |
brightness | power usage and light range when on |
---|---|
bulb_colour | Light colour |
bulb_power | basically the light_power of the emitted light source |
fitting | the bulb item name in this light |
flicker_time | what's the duration that the light switches between on and off while flickering |
flicker_time_lower_min | lower bounds of potential flicker time when randomized |
flicker_time_upper_max | upper bounds of potential flicker time when randomized |
flickering | is our light flickering? |
light_flicker_state | holds the state of our flickering |
light_type | the type of light item |
lightambient | looping sound for flickering lights |
random_flicker | if true randomize the time we turn on and off |
rigged | true if rigged to explode |
status | LIGHT_OK, _EMPTY, _BURNED or _BROKEN |
switchcount | count of number of times switched on/off. this is used to calc the probability the light burns out |
Procs | |
broken | break the light and make sparks if was on |
explode | Blows up the light |
fix | Fixes the light |
flicker | flicker lights on and off |
flicker_power_state | proc to toggle power on and off for light |
has_power | Returns true if area is powered and has lights toggled on |
update | update the light state then icon |
update_offsets | Sets the correct offsets for the object and light based on dir |
Var Details
brightness

power usage and light range when on
bulb_colour

Light colour
bulb_power

basically the light_power of the emitted light source
fitting

the bulb item name in this light
flicker_time

what's the duration that the light switches between on and off while flickering
flicker_time_lower_min

lower bounds of potential flicker time when randomized
flicker_time_upper_max

upper bounds of potential flicker time when randomized
flickering

is our light flickering?
light_flicker_state

holds the state of our flickering
light_type

the type of light item
lightambient

looping sound for flickering lights
random_flicker

if true randomize the time we turn on and off
rigged

true if rigged to explode
status

LIGHT_OK, _EMPTY, _BURNED or _BROKEN
switchcount

count of number of times switched on/off. this is used to calc the probability the light burns out
Proc Details
broken
break the light and make sparks if was on
explode
Blows up the light
fix
Fixes the light
flicker
flicker lights on and off
flicker_power_state
proc to toggle power on and off for light
has_power
Returns true if area is powered and has lights toggled on
update
update the light state then icon
update_offsets
Sets the correct offsets for the object and light based on dir