- Documentation
- Server functions
- getLightType
Function
getLightType
Returns the light type: 0 point, 1 spot.
Syntax
int getLightType(element theLight)Arguments
theLightelement- The light.
Returns
The type, or false.
Example
local lamp = createLight(1, 0, 0, 5)
outputDebugString(getLightType(lamp))