lightIsOn lamppost

Operand types

lamppost: Object

Type of returned value

Description

Check if lampost is on (shining).
Possible values are:

* "ON"
* "OFF"
* "AUTO" (auto is only on during the night).

Used In

OFP/ArmA

Example

lightIsOn nearestObject [player, "StreetLamp"] != "OFF";
_it = lightIsOn object 159582; .... <i>object command not supported in ArmA</i>
Search OFPEC COMREF