As always, thank you for your support!
I am trying to assign a task with a loading animation to a TaskExcuter through the TaskSequence.addTask() method.
Also, TaskExcuter has custom animation applied through Animation Creator.
I want to load the items after the TaskExcuter moves to the destination (10,0,0) and performs a custom animation.
TaskSequence ts = TaskSequence.create(Model.find("TaskExcuter1"), 0, 0);
ts.addTask(TASKTYPE_TRAVELTOLOC, NULL, NULL, 10, 0 , 0);
ts.addTask(TASKTYPE_STARTANIMATION, NULL, NULL, 1);
ts.addTask(TASKTYPE_LOAD, item, station, 1);
ts.dispatch();
When you run the code above, the TaskExcuter moves to the destination (10,0,0), starts the custom animation, and loads the item even though the animation has not ended.
Additionally, please check the durationtype parameter and durationtvalue parameter, which are the arguments of TASKTYPE_STARTANIMATION.