Jump to content
PigeonSparrow

ai Jet fires AA missile while on ground

Recommended Posts

I keep running into this issue and it's driving me crazy. Whenever a taxiing ai jet targets an enemy aircraft in the air, it fires an AA missile while still on the ground and blows itself up. It does it every time. Anyone else have this issue? Though it might be a mod but I unloaded everything and they still keep blowing up.

  • Like 2

Share this post


Link to post
Share on other sites

Yep! it's ridiculous. Even in forced "safe" behaviour, the pilot fires!

 

My workaround:

in init field for your aircraft:


 

if (isTouchingGround this && local this) then {
  this setBehaviour "AWARE";                                comment " 'SAFE' makes the aircraft static (stopped) on runway";
  this disableAi "autoCombat";
  this disableAI "CHECKVISIBLE"
};
this addEventHandler ["Gear", {
   params ["_plane", "_gearDown"];
  if (_gearDown) then {
    _plane setBehaviour "AWARE";
    driver _plane disableAi "autoCombat";
    driver _plane disableAI "CHECKVISIBLE";
    systemChat "LG down"
  };
  if !(_gearDown) then {
    driver _plane enableAi "autoCombat";
    driver _plane enableAI "CHECKVISIBLE";
    systemChat "LG retracted"
  };
}];

 

  • Thanks 1
  • Haha 1

Share this post


Link to post
Share on other sites
43 minutes ago, pierremgi said:

At least,

 

we have persons , that have this kind of skills , talent and possibilities !

 

Thanks Pierre !

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

×