lightIsOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|LIGHTISON]]
[[Category:Scripting Commands|LIGHTISON]]
[[Category:Scripting Commands OFP 1.97|LIGHTISON]]
[[Category:Scripting Commands OFP 1.96|LIGHTISON]]
[[Category:Scripting Commands OFP 1.46|LIGHTISON]]
[[Category:Scripting Commands OFP 1.46|LIGHTISON]]
[[Category:Scripting Commands ArmA|LIGHTISON]]
[[Category:Scripting Commands ArmA|LIGHTISON]]

Revision as of 20:49, 1 June 2006


lightIsOn lamppost


Operand types:

lamppost: Object

Type of returned value:

String

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.