lightIsOn

From Bohemia Interactive Community
Revision as of 19:19, 22 April 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


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


Comments:

Use switchLight to turn lamposts on and off.