OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Commando on 12 Jan 2003, 03:42:47

Title: Is there a way to shut down streetlights?
Post by: Commando on 12 Jan 2003, 03:42:47
I wonder if there's a way to shut down streetlights that are in a map.
Because im making a mission where I want it to be dark and I want to have smaller red lights or so that doesn't make a whole city glow.. :-\

Anyone got any suggestions or so?
Title: Re:Is there a way to shut down streetlights?
Post by: Sui on 12 Jan 2003, 04:52:23
I suggest the switchlight command...

Get the object ID of the Streetlamp (click the Show ID's button and zoom in far enough to pick out the streetlamp) and use a line like this:

(Object 2995) switchlight "OFF"

Where 2995 is the number of your streetlight.

Just note you need Resistance to do this... If you only have v1.46 there is another way, but it's a tad more complicated ;)
Title: Re:Is there a way to shut down streetlights?
Post by: Diepvriezer on 12 Jan 2003, 13:58:07
look at the editors depot, someone have made a script for this
Title: Re:Is there a way to shut down streetlights?
Post by: Commando on 12 Jan 2003, 14:25:38
Great thx! You answered pretty fast to :D
I have resistance 1.90 so its no problems there ;)
I checked the editors depot but that script didn't work...
or something I started close to a light a car and I walked arund and checked if the radio had any thing to do with it but I didn't make it shutdown at all so I posted a question here. :)