Jump to content

Recommended Posts

Posted

I'm still learning, and I cannot figure out how to achieve this:

 

In my mission I spawn an AI group when player enters a zone or destroys a ground target. The AI group is tasked to intercept the player while returning to the carrier, but is not meant to reach him if played correctly. It is only meant as a threat.

 

So far, so good. But I would now want to make the AI group to RTB, but only IF player is destroyed OR player is inside a trigger zone near the carrier OR AI group is damaged by the carrier's escort ship. I know how to set each of those conditions, but I do not know how to make the "action". AI group's flightplan has wp 1 where it is supposed to search and attack the player, and wp 2 is landing back home. I would like the AI group to stay on waypoint 1 flying CAP until one of those conditions is met. Only then I want them to switch to wp 2.

 

I know I can set a condition to the switch waypoint command on wp1 to switch to wp 2 when a flag is true. And I can activate that flag whenever the desired conditions are met. But, how I get the AI to not go automatically from wp 1 to 2 when they reach wp 1?

 

I have attached the miz in case anyone wants to check it.

 

 

 

Thank you in advance!

5.miz

Posted

RAT_Flight_01 is the group? Opened in OB it has no waypoints. Perhaps it is a version error. Also please next time tell what version or at least branch mission was made in. I put it in DCS World folder and it doesn't show up because it was made in DCS World Open Beta. Running the program twice takes a lot of time.

 

Try "duration" or other stop condition on WP1.

Posted (edited)

Hi Darcaem.

 

Set a flag when the desired condition becomes true.

 

(UNIT DEAD (player), UNIT INSIDE ZONE (player, wherever)

 

Use this flag as a STOP CONDITION for the bandits' CAP tasking in Advanced Waypoint Actions.

 

In the Triggered Actions tab for the bandits add Perform Command -> Go to waypoint and select their RTB waypoint.

 

Create a second trigger, once the flag is true (or incorporate it into the first trigger) and use AI TASK PUSH to send the bandits back to base.

Edited by feefifofum
Posted

I take the chance to ask what I have to do if I want a friendly flight to attack in targets that I have preset! I mean in single player.

 

Thank you!!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...