Jump to content

Is there a way to return the active waypoint for an AI aircraft?


Recommended Posts

Posted

Guys,

I'm working on a script for a spotter that finds and smokes targets. I'm using spawn and PushRoute to get him to follow a table of waypoints. When he finds a target I am using TaskOrbit to have him loiter. I'm having trouble getting him to resume the route once he is finished.

Is there a way to track waypoints as they're passed, or can I return the number of the active waypoint in some manner?

Thanks,

DM

[PC] ASUS X570E - Ryzen 9  5950X - RX 6900 XT - 32GB 3600Mhz

Hornet, A-4E-C, Huey, Ka-50, Mi-8, F-15E, F-14

Join us on Death Dealers PvE server.

Posted
On 2/2/2022 at 3:28 PM, Death Merchant said:

... I'm having trouble getting him to resume the route once he is finished...

Group.getByName(AIGroupName):getController():resetTask() will make AI stop orbiting and resume route.

  • Like 1
  • Recently Browsing   0 members

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