Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »



Introduced in

Version:1.00

Description

Description:

Controls whether a lamp is lit or not.

Can only be used with map-placed lamps; has no effect on editor-placed ones.

Syntax

Syntax: lamp switchLight mode
Parameters:
  • lamp: Object
  • mode: String - Mode can be: "ON", "OFF" or "AUTO" (lamp is on during night, and off during day - default)
Return Value: Nothing

Examples

Examples: lamp1 switchLight "off" (nearestObject [player, "Streetlamp"]) switchLight "OFF"

Additional Information

See also: lightIsOn, switchAllLights
Multiplayer: 
Problems: 

Notes




  • No labels