Jump to content

pushTask( MissionTask ) -> same as SetTask(MissionTask?)


Recommended Posts

Posted (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 by FlightControl

[TABLE][sIGPIC][/sIGPIC]|

[/TABLE]

  • 6 years later...
  • Recently Browsing   0 members

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