Home   Help Search Login Register  

Author Topic: Flares  (Read 1707 times)

0 Members and 1 Guest are viewing this topic.

headshot_snipe

  • Guest
Flares
« on: 06 Sep 2002, 21:12:26 »
Hullo ;D
Just wanna to ask if i could make a flare shoot up from no  ???where and how to do that.

Thanks
HSS

T.S.C.Plage

  • Guest
Re:Flares
« Reply #1 on: 06 Sep 2002, 22:00:43 »
Write this in "On Activation" of a trigger:

flare1 = "flare" camcreate [ X , Y , Z ]

You've to copy the coordinates from your mission.sqm (think should be the ones from the trigger)...but notice in .sqm they're written [ X , Z , Y ] so you've to change the last two coordinates in the trigger.
Z is the height and you can change it how you need it.

Greetz
Plage

imemyself

  • Guest
Re:Flares
« Reply #2 on: 07 Sep 2002, 00:19:50 »
Could you put it over a gamelogic; If so how.

Offline @cero

  • Members
  • *
  • Yeah! Get some!!
Re:Flares
« Reply #3 on: 07 Sep 2002, 01:21:30 »
nstead of camcreate on XYZ call the game logic something, like Surprise, and put the name on it:
 game logic name:Surprise

Trigger onactivation field:
flare1="flare"camcreate getpos surprise

I think that should do.
SCREWBY!!!

Mike

  • Guest
Re:Flares
« Reply #4 on: 07 Sep 2002, 04:56:30 »
Even better, make it a radio command and repeatedly.. and setpos to your player ;) or maybe a bit behind who knows..  :cheers:
« Last Edit: 07 Sep 2002, 04:56:56 by Mike »

Offline Davies1

  • Members
  • *
  • Bugger this for a game of soldiers!
Re:Flares
« Reply #5 on: 07 Sep 2002, 14:54:40 »
yup

I think you may need brackets though
the syntax I use is

Light = "flare" camcreate [getpos logic select 0, getpos logic select 1, (getpos logic select 2) + 100]

the logic being the gamelogic. the 100 being the height is pops up at.
this is the way I have to do it for resistance but the other way should be as good.
Beer is the fuel for the Heavy Metal Engine.

headshot_snipe

  • Guest
Re:Flares
« Reply #6 on: 07 Sep 2002, 17:53:23 »
Thankx to you all.
It works and its great.
Just one more thing, how do i make it ascend and descend nstead of making it apear a 100 meters above the ground?

Thanks

HSS

Offline Davies1

  • Members
  • *
  • Bugger this for a game of soldiers!
Re:Flares
« Reply #7 on: 07 Sep 2002, 18:50:40 »
i dont think you can but theres a good script in the code snippets that uses two fires that arc on a trajectory that actually fire throught the air
Beer is the fuel for the Heavy Metal Engine.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Flares
« Reply #8 on: 07 Sep 2002, 18:59:50 »
I know its not really what you want but if you were prepared to have a dude fire it you'd get the right arc .... make sure he is a grenadier and put in his init field

this removemagazine "grenade"; this addmagazine "flarered"; this addweapon "flarered"

and at the appropriate moment

dude fire "flarered"

or flare, flaregreen etc.

If you didn't want to have the dude around you could teleport him in and out again from a far corner of the map with the old setpos spell.
Plenty of reviewed ArmA missions for you to play

T.S.C.Plage

  • Guest
Re:Flares
« Reply #9 on: 07 Sep 2002, 19:04:37 »
You can setpos the flare each second (or what ever) to +1 meter (or even -1 meter)...but therefore you've to write a script. So it should ascend/descend like you want it to.

Greetz
Plage