asw_dynamic_light

From Source Entities
Jump to navigation Jump to search
Info.png

This entity is not in the stock FGD files by default.
See below for instructions on making it available.

Code classes:

Light.png

asw_dynamic_light is a point entity present in Asw.pngAlien Swarm. It's an entity similar to light_dynamic, though this version of it presents no clear advantages except for its ability to emit light omnidirectionally. It is used for the light emitted by env_fire. It cannot be forced to emit directionally and cannot use Appearance (style) patterns.
Editors: 
Be aware that any changes you make to this page might need to be done to CDynamicLight too.

FGD Code[edit | edit source]

Keyvalues[edit | edit source]

Light color (LightColor) <color255>
Color of the light. Light cannot be black; darker colors simply make the light fainter.
Bug: For some reason, the color displays incorrectly in the 3D view.
Light brightness (brightness) <integer>
How bright the light is. The ideal range for this value is -5 to 5.
Maximum distance (distance) <float>
Farthest distance that the light can cast.

Inputs[edit | edit source]

Color <color255>
Sets Light color.
brightness <integer>
Sets Light brightness.
distance <float>
Sets Maximum distance.
TurnOn
Turns the light on.
TurnOff
Turn the light off.
Toggle
If on, turn off. If off, turn on.