Home   Help Search Login Register  

Author Topic: Helecopter won't attack!  (Read 1126 times)

0 Members and 1 Guest are viewing this topic.

DeAtHhAwK

  • Guest
Helecopter won't attack!
« on: 22 Aug 2006, 20:57:10 »
I'm currently making a mission where a want a UH60-MG to give fire support to some ground troops.

However, no matter what sort of waypoint, behaviour or combat mode I give it, it just won't attack the enemy troops! I've even tried disabling fleeing, and that has no effect!  >:(

It simply flies to the engagment area, moves to it's waypoint, then flies off 1KM or so and just hovers. And it appears to want to sit there forever.  ???

It's REALLY frustrating!  :banghead:

Anybody any ideas??

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Helecopter won't attack!
« Reply #1 on: 22 Aug 2006, 21:18:50 »
have you tried creating a search and destroy waypoint over the area? make it's diameter about 200 metres, and put a cyle waypoint right next to it.

also bear in mind that a chopper needs a significant target upon which to fire. i daresay you've tried looking for target loons from a chopper in flight. it ain't easy. if all else fails, get yourself the invisible targets addon and spread a few around the area. unfortunately the ground troops will fire at it too, but at least the chopper will engage.

try the waypoints first, and work from there.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Helecopter won't attack!
« Reply #2 on: 22 Aug 2006, 21:32:07 »
The best way to force a helicopter to fire on troops is either:
1) use an invisible armour/car target that is scripted to be placed near the troops
or
2) use the reveal and  doWatch command on the helicopter gunner to show him the infantry

Code: [Select]
[units group player,heli1,300] exec "helikill.sqs"helikill.sqs
Code: [Select]
_units = _this select 0
_heli = _this select 1
_range = _this select 2
#loop
{if ((_x distance _heli) < _range) then {_heli reveal _x; (gunner _heli) doWatch _x}} forEach _units
~5
if ((({alive _x} count _units) < 1) or (not alive _heli)) then {exit}
goto "loop"

Or something along those lines.
« Last Edit: 22 Aug 2006, 21:35:36 by Mr.Peanut »
urp!

Offline 456820

  • Contributing Member
  • **
Re: Helecopter won't attack!
« Reply #3 on: 23 Aug 2006, 11:21:38 »
It should engage providing it can see the enemy as a threat and is a limited speed.
Also try a seek and destroy waypoint like Bedges said.

I had a mission where several choppers must land under fire at an lz when they take off again they start to engage the squads.
Try some reveal commands with the chopper and the ground troops.