Te_Pille Posted December 28, 2017 Posted December 28, 2017 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.
JimTM Posted December 28, 2017 Posted December 28, 2017 (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 December 28, 2017 by JimTM
Te_Pille Posted December 28, 2017 Author Posted December 28, 2017 here: https://www.dropbox.com/s/pnoboyxpqnj6lwm/Chiquito%20Tutorial%20Combat.Mission?dl=0
JimTM Posted December 28, 2017 Posted December 28, 2017 (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 December 28, 2017 by JimTM
No601_Swallow Posted December 31, 2017 Posted December 31, 2017 ... 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! 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now