⭐source_lights
Source Lights Library, loaded by requiring "gamesense/source_lights"
Last updated
Source Lights Library, loaded by requiring "gamesense/source_lights"
Last updated
source_lights.create_dlight(key: number)
: cdata (dlight object pointer)
Creates and returns a dlight object at the specified key
source_lights.create_elight(key: number)
: cdata (dlight object pointer)
Creates and returns an elight object at the specified key
light_object:set_flags(...)
Sets an objects flag value
light_object:set_color(r, g, b, exponent)
Sets an objects color value
Name | Value |
---|---|
Type | |
---|---|
Argument
Type
Description
key
number
Entity index
Argument
Type
Description
key
number
Entity index
Argument
Type
Description
...
string/number
flag
Argument
Type
Description
r
number
Red (0-255)
g
number
Green (0-255)
b
number
Blue (0-255)
exponent
number
DLIGHT_NO_WORLD_ILLUMINATION
0x1
DLIGHT_NO_MODEL_ILLUMINATION
0x2
DLIGHT_ADD_DISPLACEMENT_ALPHA
0x4
DLIGHT_SUBTRACT_DISPLACEMENT_ALPHA
0x8
DLIGHT_DISPLACEMENT_MASK
0xC
flags
int
origin
vector
radius
float
color
ColorRGBExp32
die
float
decay
float
minlight
float
key
int
style
int
m_Direction
vector
m_InnerAngle
float
m_OuterAngle
float