Jump to content
Sign in to follow this  
instagoat

How to force combat helo to fly in height

Recommended Posts

I am trying to make a bunch of Ghosthawks orbit the target location after dropping in their squads. Latter works perfectly fine 75 % of the time (rest of the time is regular arma issues like Helos kissing trees and powerlines, or trying to land on the same helipad.), but after that they fly into the enemy occupied area and instead of staying at their assigned altitudes (no matter wether set by flyinheight or the waypoint alt box) once they spot the enemy or are fired upon immediately switch to highest speed and low altitude. Consequently, they make themselves super easy targets for enemy machineguns as well as being unable to maneuver among the hills, crashing within minutes, sometimes seconds of the battle beginning.

So, is there a no-script way to -force- AI Units in combat mode to move at slow or medium speed, and stay nailed to their assigned altitude?

Share this post


Link to post
Share on other sites

You could try this:

(driver this) disableAI "FSM";
(driver this) disableAI "TARGET";
(driver this) disableAI "AUTOTARGET";

Just put that code in the helicopter's init field.

Being shot at causes the AI to start running a lot of code so that they do not look robotic or helpless. It does not always work very well, as you can see. Preventing fsm's from running could prevent some of their wild behavior. I did not test this and it will probably not fix everything. You should also make sure that their waypoint behavior is "careless" and the speed is "limited".

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×