OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cirkut5732 on 22 Oct 2005, 04:22:17
-
Hey guys
I have a car crash I want to surround with flares, How do I go about placing the flare (trigger i assume) and how do I make them continous so as not to burn out (a loop script i assume but do not know how)
Thanks people!
-
The kind of flares that are shot from gun go out when they hit the ground.
There is an addon for glow lights. Its called colored lights and has a blue, red and green light and they light up by using the inflame true command.
Here's the link: http://ofp.gamezone.cz/unofaddons/ColoredLights.zip
-
yes, you were right the first time. a loop. camcreate the flare, wait the right number of seconds (i think it's 8 from memory) and then light another. the first one starts dying out as the second is coming to life. here -
place an empty marker called "mk_flarespot". then call this script.
_x = getmarkerpos "mk_flarespot" select 0
_y = getmarkerpos "mk_flarespot" select 1
#loop
_f = "flare" camcreate [_x,_y, 200]
~8
?not (stop_flares) : goto "loop"
exit
you will also need a global variable stop_flares which you set to true somewhere when you want it to go dark again.
hope that helps - oh, and there are differently coloured flares - try them to see what kind of atmosphere you can create 8)