Jump to content

Attempting to have a ship make turns through AI Task Push and triggers


Recommended Posts

Posted

So I'm trying to setup a ship that will make turns to evade when being bombed (WW2).

The only way I figured so far, is to setup a moving trigger zone on the ship, then when "part of coalition is in zone", it will trigger AI Task push for the ship to go to a new Waypoint in opposite direction of the original way point. I also set a Flag. 

Then, I setup a second trigger, "time since flag" to trigger a turn back to original waypoint in opposite direction. 

This causes the ship to start turning when enemy aircraft approaches, and turn back after 45 seconds so it's a nice evasive maneuver. At the end, i turn off the Flag so it can reset. 

Problem is, I cant get it to do this more than once. After it resumes on the original waypoint heading, and when aircraft comes back into the trigger zone, nothing happens. 

How do I make this repeat?

I have tried "repetitive action" as well as "switched condition", but none seem to reset the trigger. 

Posted

Use switched condition triggers instead of Once.

 

See this discussion for more information:

 

Awaiting: DCS F-15C

Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files

 

Posted

If you can post a copy of your .miz file it will be easier for people to make suggestions on how to make it do what you want.  Chances are it's something simple.

  • Like 1
Posted

Managed to make it work. I believe I was making a mistake with the flag usage and the stop conditions. I removed the stop conditions and used only flags and "time more" to switch to new waypoints. So now when attacking a WWII carrier, when you begin the bomb or torp run, it does S-turns and evades, making is 10x harder to hit. 

  • Recently Browsing   0 members

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