OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: static on 03 Jul 2004, 03:24:20
-
I'm creating a night time mission. My squad starts out at a small outpost where they are briefed for their stealth mission. I need light other than the weak fires, how can I do this? :-\ as a begginer scripter. ex. nogville, if you don't mind me using this as an example, every town when you enter it gets a huge unknown light source that lights everything up. it would add the reality to my mission a lot. thanks
-
Look in the addons depot for a streetlamp addon.
-
thanks but those dont light up they are pretty much decoration. but thanks anyways
-
Use a flare looping script.
:beat: *Gets Shot* :beat:
-
Place streetlights on your map from the Editor.
They do light up.
I presume you have the EditorUpdate by Kegetys or Gunslinger if using version 1.46.
Planck
-
thanks but those dont light up they are pretty much decoration. but thanks anyways
You are using the SwitchLight command arent you?
I got them to turn on, they just sent my OFP crashing to desktop. In the end I made a streetlight addon using the Fire class. It works ok, but it does tend to flicker.
-
Okay everyone, simply, if you are using a street light addon just simply type in it's initializaition field: " This inflame True". i believe that will work.
-
what is the full initi. code for switchlight, its not working, and this inflame true only works with fires. thanks for all the suggestions guys but its still not workin for me.
-
Okay sorry, the Inflame true command line does not work for upgrades for OFP, the inflame true only works for a certain Street light addon. If you still need to get them to light, let me have your email adress and i will send you a street light add on because i have tried it under desert island in the dark. So or email me first. my email adress is Nightjay0044@aol.com
Thanks :)
-
Streetlights can also be turned on with 'this inflame true'
It is not only for fires.
As UnNamed said they do tend to flicker a little.
Try the streetlights that came with CWC.
From the Command Reference:
lamppost switchLight mode
Operand types:
lamppost: Object
mode: String
Type of returned value:
Nothing
Description:
Controls lamppost mode. Mode may be "ON", "OFF", "AUTO". "AUTO" is default, lampost is on only during night time.
Example:
nearestObject [player, "StreetLamp"] switchLight "Off"
Example:
object 159582 switchlight "on"
Planck
-
THANK YOU NightJay0044, who gave me a streetlight addon to light up my military base. thats all i needed, you can delete this if you want. i will delete it tomorrow if you don't. i just wanted you to knwo that nightjay was very helpful to me. thanks