Calculating Jump with PathfindingService?

Is there a way to calculate if a Humanoid needs to jump?

I’m not sure but I remember that PathfindingService has a thing that tells when an NPC has to Jump but I can’t find any documents on it.
The Wiki pages are

completely useless

PathfindingService:CreatePath() has nearly no documentation
PathfindingService doesn't show CreatePath in method list
Path object missing API documentation

1 Like

The API you’re looking for is PathWaypoint.Action. This API is a PathWaypointAction enum that determines whether or not the point is for walking to or jumping to.

PathWaypoints are returned via Path:GetWaypoints(). Doesn’t look like you looked at the PathWaypoint page in your search.

8 Likes

I’ve also experimented and found out that when you unpack and print Path:GetWaypoints(), you can get Vector3 expected of the Path, as well as if the next point is reachable via a Walk or a Jump. I’m not sure if this is useful, but I hope it is.

1 Like

Thank you both, @AbiZinho, @Thundermaker300

Got it to work nicely

8 Likes