switchLight

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Controls lamppost mode. Mode may be:

  • "ON"
  • "OFF"
  • "AUTO" ( Lampost is on only during nighttime)

"AUTO" is default.

Syntax

Syntax:
lamppost switchLight "mode"
Parameters:
lamppost: Object
mode: String
Return Value:
Nothing

Examples

Example 1:
(object 12345) switchLight "off" nearestObject [player, "Streetlamp"] switchLight "OFF"

Additional Information

Multiplayer:
Behaviour unknown.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Use lightIsOn to check the status of a lamppost.

Bottom Section

Personal tools
Buy ArmA now!