lightIsOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 30: Line 30:


'''lightIsOn''' [[nearestObject]] [[[player]], "StreetLamp"] != '''"OFF"'''
'''lightIsOn''' [[nearestObject]] [[[player]], "StreetLamp"] != '''"OFF"'''
_it = '''lightIsOn''' [[object]] 159582
_it = '''lightIsOn''' [[object]] 159582

Revision as of 13:00, 16 April 2006

back to COMREF

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