OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: boefadeez on 11 Dec 2005, 21:40:34

Title: Helos attacking Infantry?
Post by: boefadeez on 11 Dec 2005, 21:40:34
How do I get a non-player helicopter to attack infantry?
Title: Re:Helos attacking Infantry?
Post by: macguba on 11 Dec 2005, 22:05:42
It's a problem, but it has been solved.  Have a good search of the forums and the Editors Depot - there is some useful stuff somewhere.
Title: Re:Helos attacking Infantry?
Post by: boefadeez on 11 Dec 2005, 22:57:31
I searched and saw a way to do ti with invisible targets, but I was thinking more along the lines of any infantry unit on the map...
Title: Re:Helos attacking Infantry?
Post by: LoTekK on 11 Dec 2005, 23:04:18
I don't think it's going to be possible without invisible targets, at least not without significantly altering weapon and target costs in the config.bin/cpp.
Title: Re:Helos attacking Infantry?
Post by: macguba on 11 Dec 2005, 23:04:59
There is no foolproof way.     Reveal commands help a bit.    The reason people use invisible targets is that even when the chopper knows the enemy infantry is there, and is in a position to attack, it is often reluctant to do so.    
Title: Re:Helos attacking Infantry?
Post by: 456820 on 11 Dec 2005, 23:17:17
ive found a way to get infantry to attack helos not tried it the other way around but could be worth a go

get the chopper give it a waypoint openfire, engage at will and combat mode
switch the WP to hold i think it is, make the chopper fly rather slow and make it fly at about 30m using this flyinheight 30 should do it

add a couple of reveal commands and it should attack the infantry aslong as they opose a threat i think works for me to get infantry attack choppers
Title: Re:Helos attacking Infantry?
Post by: Blacknite on 13 Dec 2005, 01:46:46
Have ya tried:  unitname dotarget targetname in the Activation field?