byond - Modules - TypesVar Details - Proc Details

light

Vars

brightnesspower usage and light range when on
bulb_colourLight colour
bulb_powerbasically the light_power of the emitted light source
fittingthe bulb item name in this light
flicker_timewhat's the duration that the light switches between on and off while flickering
flicker_time_lower_minlower bounds of potential flicker time when randomized
flicker_time_upper_maxupper bounds of potential flicker time when randomized
flickeringis our light flickering?
light_flicker_stateholds the state of our flickering
light_typethe type of light item
lightambientlooping sound for flickering lights
random_flickerif true randomize the time we turn on and off
riggedtrue if rigged to explode
statusLIGHT_OK, _EMPTY, _BURNED or _BROKEN
switchcountcount of number of times switched on/off. this is used to calc the probability the light burns out

Procs

brokenbreak the light and make sparks if was on
explodeBlows up the light
fixFixes the light
flickerflicker lights on and off
flicker_power_stateproc to toggle power on and off for light
has_powerReturns true if area is powered and has lights toggled on
updateupdate the light state then icon
update_offsetsSets 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