OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FuseBox on 08 Apr 2003, 10:45:05
-
how do u turn off street lights in the game?
-
if you tell me, how to put them here, I`ll make a mission for you ;D
-
(lamppost) switchLight (mode)
Operand types:
lamppost: Object
mode: String
Type of returned value:
None
Description:
Controls lamppost mode. Mode may be "ON", "OFF", "AUTO". "AUTO" is default, lampost is on only during nighttime.
Example:
nearestObject [player, "StreetLamp"] switchLight "Off"
Or if you turn on the object id button in your editr you can find the number that corresponds to the particular lamp and put (where XXXX is the number):
(object XXXX) switchlight "OFF"
There you go