SlashCo Wiki

GenDynLight

 table GenDynLight( number entIndex )

Description

Creates a green-tinted DynamicLight for the given entity index, used by the night vision goggles item to light up the area in front of the wearer.
Offsets the index by MAX_EDICT to avoid clashing with other dynamic lights.

Arguments

1number entIndex

Entity index to associate the light with.

Returns

1table dlight

The dynamic light structure, or nil if the light limit was reached.