OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: FuseBox on 08 Apr 2003, 10:45:05

Title: street light
Post by: FuseBox on 08 Apr 2003, 10:45:05
how do u turn off street lights in the game?
Title: Re:street light
Post by: Plizkin on 08 Apr 2003, 15:39:43
if you tell me, how to put them here, I`ll make a mission for you  ;D
Title: Re:street light
Post by: mikeb on 08 Apr 2003, 18:47:41
(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