Jump to content
Sign in to follow this  
Aviox93

Make AI planes attack Soldiers

Recommended Posts

Hi !

 

So for my mission I need enemy planes to attack ground troops in a certain area.
With waypoints I made them take off then I put a destroy waypoint but they just fly around without attacking me or my soldiers. I would like to point out that I did put air to surface missiles on enemy planes as well as bombs.
Thanks!

Share this post


Link to post
Share on other sites

Unless you want the planes to be an active target for you and your units in your scenario, I have two solutions for you:

 

  1. Use CAS Module, select your preferred aircraft and sync it to a trigger. When the trigger is activated, the CAS will spawn, attack and fly away.
  2. If you want the plane(s) to attack the same way and at the same place each time, use unitCapture and unitPlay for both movement data and firing data
    • Don't overruse unitCapture, as it will make your mission folder very large in file size.
    • The upside to this method is that the planes will remain in the scenario as AI units after unitPlay is completed, making them targetable for you and your units

 

By using one of the methods above, you are guaranteed that the planes will attack no matter what.

 

Share this post


Link to post
Share on other sites
17 hours ago, Aviox93 said:

Hi !

 

So for my mission I need enemy planes to attack ground troops in a certain area.
With waypoints I made them take off then I put a destroy waypoint but they just fly around without attacking me or my soldiers. I would like to point out that I did put air to surface missiles on enemy planes as well as bombs.
Thanks!

Learn what the "Guard" waypoint does. it will become your best friend.   https://community.bohemia.net/wiki/Waypoints

 

With Guard,any "known" targets will be shared with Guard groups,and they will move to attack them. Keep in mind, jets are designed for vehicle tasks usually, And AI will always prioritise them over infantry.

 

Really it depends on your type of scenario..is this a dynamic mission or heavily premade with waypoints,and specific unit positions / groups etc?

Share this post


Link to post
Share on other sites
2 hours ago, Saltoperator said:

Unless you want the planes to be an active target for you and your units in your scenario, I have two solutions for you:

 

  1. Use CAS Module, select your preferred aircraft and sync it to a trigger. When the trigger is activated, the CAS will spawn, attack and fly away.
  2. If you want the plane(s) to attack the same way and at the same place each time, use unitCapture and unitPlay for both movement data and firing data
    • Don't overruse unitCapture, as it will make your mission folder very large in file size.
    • The upside to this method is that the planes will remain in the scenario as AI units after unitPlay is completed, making them targetable for you and your units

 

By using one of the methods above, you are guaranteed that the planes will attack no matter what.

 

Hey thanks for your answer. 

But I don't want a random plane to appear from nowhere, shoot and disappear. I want the ai plane to patrol around an area and shoot at infantry when spotted.

Share this post


Link to post
Share on other sites
2 hours ago, redarmy said:

Learn what the "Guard" waypoint does. it will become your best friend.   https://community.bohemia.net/wiki/Waypoints

 

With Guard,any "known" targets will be shared with Guard groups,and they will move to attack them. Keep in mind, jets are designed for vehicle tasks usually, And AI will always prioritise them over infantry.

 

Really it depends on your type of scenario..is this a dynamic mission or heavily premade with waypoints,and specific unit positions / groups etc?

Hey thanks for your answer.

I didn't try the guard waypoint, I'll try it !

Yes the ai jets destroy my team vehicles really fast and that's good but they just fly around the infantry.

My mission is a domination mission on a big map with multiple capture points and the player is fighting the ai.

In my mission, I will also spawn tanks, vehicles, helis, planes, infantry etc...

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  

×