Jump to content

Pathfinder Event => Start, End


reapler

Recommended Posts

Hello, i would like to ask if someone knows an event which fires on generate path requests and also return the start & end position for the requested path.

The current event which i'm using is "MovementEvents.OnMovementPulse" but it has already generated the path to the destination.

The reason is why i need that is i want to diminish the effort for my plugin because i don't need the generated path and it's pointless if it takes a few seconds to generate while i only need the start & destination position in the end.

Link to comment
Share on other sites

Hello, you can disable PathFinder here: 

wManagerSetting.CurrentSetting.UsePathsFinder

For the events, wait next update I added:

wManager.Events.OthersEvents.OnPathFinderFindPath // Vector3 from, Vector3 to, string continentNameMpq, CancelEventArgs cancelable
wManager.Events.OthersEvents.OnPathFinderFindPathResult // Vector3 from, Vector3 to, List<Vector3> path, string continentNameMpq, bool resultSuccess

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...