OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Fireslayer on 20 Feb 2005, 00:28:03
-
How do you turn streetlights on... i dont necessarily need to be able to switch them on and off.. just have them start on (its a night mission)... Is there a way to be able to have them start turned on without scripting?? and if not whats the best script to use. any help would be appreciated.
-
If you're talking about original streetlamps, the command is switchlight. But they should be on already.
If they are addon streetlamps it may be switchlight or inflame.
Some things that look like streetlamps do not light up.
-
Streetlights have three settings: on, off and auto. The default is auto which means on when it is dark off when it isn't so you sould not need any scripting provided they are standard streetlights
-
Just a helpful thought, you may want to down load some Streetlights Addon. There are some little villages that don't have streetlamps but as a mission maker you would want some lights. I have and it has helped me in certain mission sititutions.
Thats my two cents. ;)
-
can someone mail me...or post a valid link to this addon here please
-
http://ofp.gamepark.cz/unofaddons/streetlamp.zip
Hope that you guys are talking about this one.
-
well, how does this work? lol
i've put the .pbo in addons folder...
-
well, how does this work? lol
i've put the .pbo in addons folder...
You can turn them on with this inflame true command ;)
-
I think that these streetlamps are under "empty", but I'm not sure.
So once you've placed the streetlamp put in their init: "this inflame true" and it should do the trick.
-
hmm weird, it doesn't work...
i have ofpcwc and gold upgrade
v1.30
is that got to do anything with it? btw, the streetlamps under "empty" have been there even before i've installed this addon. are the new streetlamps the same as prior or they are added to the list? i have no new lamps on any of the lists
-
Well it seems they are under empty;
if you look into the pbo you have
displayName="Streetlamp White";
displayName="Streetlamp Red";
displayName="Streetlamp Blue";
and displayName="Streetlamp Yellow"; ???