Hi, I've just started framing a script for having Mi-24s specifically make attack runs against players on foot, not in vehicles. My goal is to have the 24s use its machinegun when players are in view and (if possible) fire rockets when the player isn't in view.
I haven't even tried working with the rockets yet, but I've been trying to make Mi-24s attack the player, with little success. I've been experimenting with in-game scripts to see what works, and I'll add successful code to external scripts once I get it working. But I haven't gotten it working yet.
So far, I have triggers have the Hinds every 5 seconds DoMove, DoTarget, and DoFire any western soldier that sits in a trigger area. I also manually set the chopper's behavior to "combat", its speed to "full", and its combat mode to "Engage, fire at will".
However, despite the fact that the chopper will keep making passes toward my player, it behaves sluggishly, only opens fire at the last second, and always misses the player, firing behind him. This occurs even when the Mi-24 skill is set very high.
Does anyone have any clue what is going wrong here? I'd like to solve this problem before building a more advanced script.