Home   Help Search Login Register  

Author Topic: flares..  (Read 1511 times)

0 Members and 1 Guest are viewing this topic.

Offline 22jacket

  • Members
  • *
  • I'm a llama!
flares..
« on: 07 Jun 2006, 12:37:29 »
Hi there ..
How can I get a flare to go up in the air...say once a soilder..walks towards it and triggers it..

Offline Speeder

  • Members
  • *
    • OFP.nu
Re: flares..
« Reply #1 on: 07 Jun 2006, 12:50:03 »
Fire up your Editor
Set a Marker called "art" (no quotes)
Make a trigger, set i to Radio alpha
In the On Activation field type in:   ["art",20,3] exec "art.sqs"


_area = 5
_shells = 1


_CentrePos = GetPos _Player
_xco = _CentrePos select 0
_yco = _CentrePos select 1
_zco = _CentrePos select 2
   
_areaX2 = _area * 2

~1
titletext ["\n\n\n\n\n\n\nFlared Deployed !","plain", 2]

~1

_a = _shells

#start

_bomb1 = "FlareRed" camCreate [_xco + Random(_areaX2) - _area,_yco + Random(_areaX2) - _area,_zco + 40]




There are 10 kinds of people in this world. Those who get it, and those who don't.

Offline 22jacket

  • Members
  • *
  • I'm a llama!
Re: flares..
« Reply #2 on: 07 Jun 2006, 13:05:51 »
is every think from _area = 5 partof a script to be activated by "art.sqs"

Offline 22jacket

  • Members
  • *
  • I'm a llama!
Re: flares..
« Reply #3 on: 07 Jun 2006, 14:11:48 »
i tried that but an error message comes up at top of screen..

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: flares..
« Reply #4 on: 07 Jun 2006, 14:57:39 »
Try this.

Add an invisible Helipad to the place you want your flare to appear. Setpos it 200m in the air and then camcreate the flare on it's position when your guy hits the trigger.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: flares..
« Reply #5 on: 08 Jun 2006, 08:50:39 »
How can I get a flare to go up in the air...say once a soilder..walks towards it and triggers it..

Code: [Select]
;[getPos gamelogic1, 20]exec"fireflare.sqs"
_pos = _this select 0
_velup = _this select 1

_posf = [_pos select 0, _pos select 1, 1]
_flare = "FlareGreen" camCreate _posf
_flare setVelocity [0.1,0.1,_velup]
exit

Offline rado1265

  • Members
  • *
Re: flares..
« Reply #6 on: 08 Jun 2006, 18:45:50 »
You don't need any fancy script for it. In the trigger's Init field put:

Code: [Select]
flare1 = "flare" camCreate [getPos _triggername select 0, getPos _triggername select 1, 150]

_triggername  -  the name of the trigger

150  -  fare's initial height (adjustable)