Jump to content

Recommended Posts

Posted

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

Posted

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

Posted
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

  • 10 months later...
Posted

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.

  • Recently Browsing   0 members

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