Make an enemy AI, which instead of walking, jumps after the player? (like a frog)

Hey Everyone,

I’m trying to create an enemy AI which sees the player, and reacts by chasing after him. But instead of walking or running, I want the enemy to jump or leap after the player. I already have player detection set up using PawnSense for both visual and auditory. But I can’t figure out how to replace walking with leaping.

I’ve tried setting up Get Velocity > Vector Length, but I don’t really know how I would even activate this.
What I’ve attempted to do is to set a variable called “IsMoving” when the AI moves, then using this in conjunction with a custom event to trigger Get Velocity > Vector Length > greater than 0 > jump (along with varying combinations of stop moving) and I can’t get it working.

Any help would be appreciate.

You have to animate the model to leap to get intricate leaping attacks however you can have it jump using the jump command though it would constantly jump as opposed to just when it first moves. Which is something I used to make an enemy look like it’s swimming underwater. You should be able to connect a jump command to event pawnsensing then it should constantly jump as it moves.