Jump to content

Attack all enemy found on the path (Patrol)


Recommended Posts

Posted
Hi. I am trying to make a SP mission with two aircraft patrolling the route I made with WP´s. I set a regular waypoints, then I add a command Attack, I activated with a translator mission begin. then in the aircraft lieder group I added an event Onmovedto with target command attack.
 
I suppose this will activate the command attack while the unit is on the route but seem ignore every enemy so I am not doing the right job here.
 
Before I tested sucesflly with the command attack area, but this is not the task I want to give them. I just want make a task they do their job while routing.

 

Posted (edited)

Can you post a zip of your mission files please.

 

I don't think that the OnMovedTo event has been implemented by the developers.

Edited by JimTM
Posted (edited)

Try removing the attack command and setting Priority on your waypoints to "Low".

 

Re. your use of the attack command :

 

  - You have the command being triggered by two inputs: the mission begin translator and the OnMovedTo event from the AI leader. I don't think the OnMovedTo event was implemented and thus would never occur.

 

  - I think that the attack command is overridden by the triggering of the initial waypoint but I'm not sure; it may require a force complete command to override. Waypoint triggers act like a command "fly towards me" and then they act like a trigger when the object reaches the waypoint.

 

  - The attack command requires a target link to the object being attacked. However, triggering the attack command would override the waypoint "fly towards me" command and cause the AI planes to leave the route and seek out the target linked object, wherever it is. The AI planes would not return to the route.

Edited by JimTM
No601_Swallow
Posted

... The AI planes would not return to the route.

 

You could of course re-trigger the next waypoint after a period of time (with the timer MCU) if you know how long roughly the encounter is likely to take, or with an OnDamaged event from whatever the AI is supposed to  attack. But simply setting the "low" priority for the waypoints is useful, because the AI will in theory engage anything they detect before going on to the next waypoint. At least that's how it's worked for me!

  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...