AI not jumping over obstacles?

I’m not entirely sure if I have to script jumping but AutoJumpEnabled is set to true, so I don’t see why my character can’t just jump and go past it.

1 Like

AutoJumpEnabled is for mobile players, it doesn’t apply to NPCs.

1 Like

So I’m supposing that I have to script it?

1 Like

Yep. It would be really nice if we could call something like Nav:ShouldNPCJump(Node), but right now the only real solutions you have are raycasting or using change in the height of the nodes to detect a time when to jump.

This might help: https://devforum.roblox.com/t/pathfinding-jump/8933

I’m probably going to have a go at it myself soon.

2 Likes

Yeah you’re gonna have to script it, but warning. If ROBLOX’s pathfinding API gives you a node that says you need to jump, that “jump” is over a gap/pit/edge. I wish you best of luck trying to make that jump with an NPC, roblox has a tendency for giving the shortest path that is most likely going to kill the NPC from falling off a ledge.

2 Likes