- Documentation
- Client functions
- getElementLighting
Function
getElementLighting
Returns how strongly the element is lit (0 dark, 1 bright).
Syntax
float getElementLighting(element theElement)Arguments
theElementelement- The element.
Returns
Lighting 0-1.
Example
if getElementLighting(localPlayer) < 0.3 then
outputChatBox("Jest ciemno, włącz latarkę.")
end