Warning: file_put_contents(/ff_6abe3c0131af6a95b964891b3f64a9e935ad574170afaba5.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
lightIsOn - OFPEC Scripting Command Reference | OFPEC The Editing Center

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>

Advertisement