Home   Help Search Login Register  

Author Topic: flares  (Read 850 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
flares
« on: 24 May 2005, 19:25:05 »
okay this has probally been answered before but couldnt find anything
anyway how can i make a squad leader fire a flare(any colour) into the sky when the player is known about basically if they recieve gun fire or a soldier in their group goes down any one in the group who has an M203 and flares will fire one and after the flare has died out waits 7 seconds then fires another until he is out of flares or is dead

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:flares
« Reply #1 on: 24 May 2005, 20:20:11 »
i typed 'flares' into the editor's depot search box, and this is what i got.

Offline 456820

  • Contributing Member
  • **
Re:flares
« Reply #2 on: 24 May 2005, 20:23:21 »
hey thanks but thanks but  couldnt find anything t suit my needs their
also will knowsabout command be relevant in this? if so then i just need to learn how to make a unit fire a flare

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:flares
« Reply #3 on: 24 May 2005, 20:24:48 »
You need the fire command. This should work:

unit fire "flare"
  or
unit fire "flarered"
  etc.

To have him fire every 7 seconds, you would need a loop in a script, or multiple triggers, that just repeat that command every 7 seconds.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline 456820

  • Contributing Member
  • **
Re:flares
« Reply #4 on: 24 May 2005, 20:32:22 »
thanks GB also how do i use the knowsabut command i heard that you can say how much the ai needs to know about the player if so how much will i need to do it when the player fies upon the enemy (keeping in mind this is a silencer so this might effect it)

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:flares
« Reply #5 on: 25 May 2005, 04:44:03 »
I had West black-ops( silencers) creep up on a town with east gaurding and this flaring script work well.  trigger set to east detect. activation: [Sentry1] exec flaring.sqs. Thobson and/or Bedges helped with it. Sorry guys been awhile. :P
Anyway---
One of my scripts for east (ak74) sentry but could be used for west m203

;Flaring Script removing grenades
_unit= _this select 0
_unit removemagazines "grenadelauncher"
_count = 1
;loop adding flares and time
#loop
_unit addmagazine "flare"
_unit fire ["grenadesmuzzle", "flare","flare"]
_count = _count + 1
;the delay flare
~15
;this is number of flares of sentry
?(_count==16):goto "end"
goto "looP"
#End
Exit
Hope this helps a bit
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Offline 456820

  • Contributing Member
  • **
Re:flares
« Reply #6 on: 25 May 2005, 19:12:34 »
does that also make the unit fire upwards instead of down or where ever he is aiming or does he have sense to aim in the air and fire also how can i make it so only starts firing flares after he has been attacked other words when he has been shot at

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:flares
« Reply #7 on: 25 May 2005, 22:33:38 »
Yes, it, the AI did shoot up in the air, and get this, while he was in prone position. :D
As far as being shot at i would probably use a Trigger- Detected by- and in conditon use the M203's name in this list. Then run the flaring script from  the activation line.
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Offline 456820

  • Contributing Member
  • **
Re:flares
« Reply #8 on: 26 May 2005, 17:18:52 »
thanks ive done it now