*** edited to refocus and clarifying core problem
Hello all,
This message relates to a bug of Controller.setTask(Class self , table task ) when used in conjunction with a DCS task follow (NOT another task following the first one, a task specific for a unit to follow another one)
Set-up:
Set-up two AI controlled F/A18 within separate groups - let’s call them Lead and Wing, with waypoints in front of them. Both missions set to nothing.
Add through the Mission Editor a follow task to wing, to follow lead as per a Vec3
Action:
Run the mission and dynamically add through a F10 activated script a task to Lead using Controller.setTask (or push, doesn't matter really)
Unexpected behaviour:
Lead will execute the task properly, but wing will stop following it leads and RTB, effectively breaking the previously set DCS task follow
Of note if one uses trigger.action.setAITask rather than setTask - then it works. Lead executes manoeuvre and wing follows,
Based on the inconsistency of behaviours between the two it looks like a bug to me.
I am happy to elaborate on interact as required.
Thanks all,
best, AMBeXT.