OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Fireslayer on 20 Feb 2005, 00:28:03

Title: Lighting??
Post 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.
Title: Re:Lighting??
Post by: macguba on 20 Feb 2005, 00:44:46
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.
Title: Re:Lighting??
Post by: THobson on 20 Feb 2005, 01:41:00
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
Title: Re:Lighting??
Post by: sharkyjoe on 22 Feb 2005, 02:32:32
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.  ;)
Title: Re: Lighting??
Post by: Optik on 16 Jul 2006, 03:55:03
can someone mail me...or post a valid link to this addon here please
Title: Re: Lighting??
Post by: Cheetah on 16 Jul 2006, 10:26:16
http://ofp.gamepark.cz/unofaddons/streetlamp.zip

Hope that you guys are talking about this one.
Title: Re: Lighting??
Post by: Optik on 16 Jul 2006, 16:36:14
well, how does this work? lol
i've put the .pbo in addons folder...
Title: Re: Lighting??
Post by: srk on 16 Jul 2006, 21:22:28
well, how does this work? lol
i've put the .pbo in addons folder...

You can turn them on with this inflame true command ;)
Title: Re: Lighting??
Post by: Cheetah on 16 Jul 2006, 23:01:54
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.
Title: Re: Lighting??
Post by: Optik on 17 Jul 2006, 00:44:04
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
Title: Re: Lighting??
Post by: Seven on 17 Jul 2006, 04:34:34
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";  ???