Home   Help Search Login Register  

Author Topic: continuous flare at start of mission  (Read 602 times)

0 Members and 1 Guest are viewing this topic.

cirkut5732

  • Guest
continuous flare at start of mission
« 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!
« Last Edit: 22 Oct 2005, 12:33:18 by bedges »

pazuzu

  • Guest
Re:continous flare at start of mission
« Reply #1 on: 22 Oct 2005, 07:26:20 »
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

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:continuous flare at start of mission
« Reply #2 on: 22 Oct 2005, 12:31:27 »
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.

Code: [Select]
_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)
« Last Edit: 22 Oct 2005, 12:33:03 by bedges »