switchLight
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
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
Examples
- Example 1:
(object 12345) switchLight "off" nearestObject [player, "Streetlamp"] switchLight "OFF"
Additional Information
- Multiplayer:
- Behaviour unknown.
Notes
Notes
Notes
-
Use lightIsOn to check the status of a lamppost.

