lightIsOn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands]] | |||
[[Category:Scripting Commands OFP 1.97]] | |||
[[Category:Scripting Commands OFP 1.46]] | |||
[[Category:Scripting Commands ArmA]] | |||
back to [[Scripting_Reference#L|COMREF]] | back to [[Scripting_Reference#L|COMREF]] | ||
Revision as of 16:52, 19 April 2006
back to COMREF
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.