Hello, I am trying to get a pushaitask function to work and it is driving me crazy. I have a tanker named Boom1. I set up 4 triggered actions for this tanker with varying speeds and altitudes. I can activate any of them using the GUI interface but not with MIST. Here is my script:
local B1 = missionCommands.addSubMenu("Tanker Boom1", nil)
missionCommands.addCommand("Altitude 5000", B1,function() trigger.action.pushAITask(Boom1, 1) end, nil)
I have tried setting Boom1 in the above line in double quotes as well to no avail. Is there something wrong with my syntax?
Alan