Wizard1393 Posted May 4, 2018 Posted May 4, 2018 I want to implement a menu command that orders an AI aircraft (not in player group) basically to RTB by switching waypoint to the one before landing. I have a SwitchWaypoint Waypoint Action in the ME on WPT 3 that switches waypoint to 2 so there's basically a racetrack orbit between 3 and 2. So heres my code: local uziUnit local uziController uziController = Unit.getByName(unitName):getController() local SwitchWaypoint = { id = 'SwitchWaypoint', params = { fromWaypointIndex = 4, goToWaypointIndex = 5, } } uziController:setCommand(SwitchWaypoint) As i understand it, the aircraft should end up at waypoint 5 and the continue following route to landing. However, nothing happens at all. Anyone know what's what? GPU: PALIT NVIDIA RTX 3080 10GB | CPU: Intel Core i7-9700K @ 4,9GHz | RAM: 64GB DDR4 3000MHz VR: HP Reverb G2 | HOTAS: TM Warthog Throttle and Stick OS: Windows 10 22H2
Wizard1393 Posted May 6, 2018 Author Posted May 6, 2018 Bumpitty :) GPU: PALIT NVIDIA RTX 3080 10GB | CPU: Intel Core i7-9700K @ 4,9GHz | RAM: 64GB DDR4 3000MHz VR: HP Reverb G2 | HOTAS: TM Warthog Throttle and Stick OS: Windows 10 22H2
Grimes Posted May 6, 2018 Posted May 6, 2018 Switched waypoint is bugged in teh 2.5.1 open beta, thats probably the cause. Will check other tasks to make sure. 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
Wizard1393 Posted May 6, 2018 Author Posted May 6, 2018 Switched waypoint is bugged in teh 2.5.1 open beta, thats probably the cause. Will check other tasks to make sure. Awesome, thanks. Good to know. GPU: PALIT NVIDIA RTX 3080 10GB | CPU: Intel Core i7-9700K @ 4,9GHz | RAM: 64GB DDR4 3000MHz VR: HP Reverb G2 | HOTAS: TM Warthog Throttle and Stick OS: Windows 10 22H2
Coug4r Posted March 12, 2019 Posted March 12, 2019 Maybe this was fixed in the meantime but this doesn't seem to work anymore. OB v2.5.4.28090 - If man were meant to fly he'd be filled with helium.
Recommended Posts