Finny Posted December 6, 2016 Posted December 6, 2016 I have been making this mission where I am using audio files through the TaskSet command (send transmission). As soon as the unit arrives on the area where they are supposed to transmit the message, they send it and become in complete stop. I tried setting a delayed trigger to force them to resume, but it didn't work. If the unit is an airplane, it refuses to do any further action and returns to base immediately. Even an airplane that is on runway will stop dead on it's position from a full acceleration just a moment before take off. I find this very weird as it was working just fine before the last big update. Any ideas?
Grimes Posted December 6, 2016 Posted December 6, 2016 Use pushTask instead. When using set task it will assign ONLY that task to the AI and every other task will be erased. It is most useful when you want to precisely control what the AI is doing. For example set task is great for artillery fire missions. Even setting an option or command will completely erase a route. Push task keeps the task queue and adds the new task to the very top of the list so it is executed immediately. Upon completion it will continue on with whatever is next. I didn't know AI would stop on take-off, that is probably a bug. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Finny Posted December 6, 2016 Author Posted December 6, 2016 Oh that worked perfectly! Thank you so much! :megalol: For some reason I always thought it was the other way around, that PushTask would cancel everything else. This explains so many of the problems I have had in the past... think I might wanna redo few of my missions :D
Recommended Posts