Hi All,
Where can I find a callback for reaching a waypoint?
Looked at AIPath but didn’t see anything to override.
I know about about onPathComplete but that is not what I want.
Thanks
Hi All,
Where can I find a callback for reaching a waypoint?
Looked at AIPath but didn’t see anything to override.
I know about about onPathComplete but that is not what I want.
Thanks
To my knowledge you dont, you get given a path and its up to you to work out how to follow it.
Most people just extract the vectorPath and then just iterate through the waypoints there.
I used
if( _p.vectorPath[0] != lastWaypoint ) {
lastWaypoint = _p.vectorPath[0];
print ( "reached next waypoint" );
Seems to work.