lightIsOn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
[[Category:Scripting Commands ArmA|L]] | [[Category:Scripting Commands ArmA|L]] | ||
<h2 style="color:#000066"> '''lightIsOn ''lamppost'''''</h2> | <h2 style="color:#000066"> '''lightIsOn ''lamppost'''''</h2> |
Revision as of 12:33, 23 April 2006
lightIsOn lamppost
Operand types:
lamppost: Object
Type of returned value:
Compatibility:
Added in version 1.04
Description:
Check if lampost is on (shining).
Possible values are:
- "ON"
- "OFF"
- "AUTO" (auto is only on during the night).
Examples:
lightIsOn nearestObject [[[player]], "StreetLamp"] != "OFF"
_it = lightIsOn object 159582
Comments:
Use switchLight to turn lamposts on and off.