⭐source_lights
Source Lights Library, loaded by requiring "gamesense/source_lights"
Functions
source_lights.create_dlight
source_lights.create_dlight(key: number)
: cdata (dlight object pointer)
Argument | Type | Description |
key | number | Entity index |
Creates and returns a dlight object at the specified key
source_lights.create_elight
source_lights.create_elight(key: number)
: cdata (dlight object pointer)
Argument | Type | Description |
key | number | Entity index |
Creates and returns an elight object at the specified key
:set_flags
light_object:set_flags(...)
Argument | Type | Description |
... | string/number | flag |
Sets an objects flag value
:set_color
light_object:set_color(r, g, b, exponent)
Argument | Type | Description |
r | number | Red (0-255) |
g | number | Green (0-255) |
b | number | Blue (0-255) |
exponent | number |
Sets an objects color value
Flags
Name | Value |
---|---|
DLIGHT_NO_WORLD_ILLUMINATION | 0x1 |
DLIGHT_NO_MODEL_ILLUMINATION | 0x2 |
DLIGHT_ADD_DISPLACEMENT_ALPHA | 0x4 |
DLIGHT_SUBTRACT_DISPLACEMENT_ALPHA | 0x8 |
DLIGHT_DISPLACEMENT_MASK | 0xC |
Light properties
Type | |
---|---|
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 |
Last updated