FlightControl Posted March 26, 2016 Posted March 26, 2016 (edited) Hi, Does somebody know this? It seems that, when i push a MissionTask on the Task queue, and then pop the task, the popTask does not pop the MissionTask. It rather pops the Task currently in the Mission... So, for example, if I have a Group with a pre-defined mission. (So, when the group spawns, it starts to execute this default mission edited in the mission editor). During the life of the Group, I want to make a new MissionTask, and i have the task in the MissionTask structure set to a valid Task table. Now, if I push this MissionTask on the Task queue using: GroupController:pushTask( MissionTask ) then indeed the group behaves like it is executing the new assigned MissionTask. However... If i want to cancel this MissionTask executing a GroupController:popTask(), then the units of the group return to base... They don't continue with the original mission... strange... MissionTask = { id = 'Mission', params = { route = { points = { [1] = { type = AI.Task.WaypointType, action = enum AI.Task.TurnMethod, x = Distance, y = Distance, alt = Distance, alt_type = enum AI.Task.AltitudeType, speed = Distance, speed_locked = boolean, ETA = Time, ETA_locked = boolean, name = string, task = Task }, [2] = { ... }, ... [N]= { ... } } }, } } Edited March 26, 2016 by FlightControl [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
TEMPEST.114 Posted November 13, 2022 Posted November 13, 2022 Hi. I know it's been a 'while' lol, but did you get this worked out?
Recommended Posts