Is there a way to disable jumping?

Hi I have created a blue print for a simple computer terminal and have programmed it to disable player movement, but I want to know how to prevent the player from being able to jump when pressing the spacebar and then able to when exiting the terminal screen. How would I program this?


You can just enable and disable movement as a whole like this :innocent:

Okay does that work with jumping?

Of course! It affects the entire movement.

I’ve programmed the nodes, but keep getting this error. Am I missing something with the Nodes?


Seems like your blueprint doesn’t have the character movement component. Which you cannot add since this is an actor blueprint and not a character blueprint. Also, you do not need the camera to be it’s own blueprint. It can exist inside the character blueprint. It doesn’t matter if it’s a first person game, you still need a character blueprint.

I did this another way before, but I can’t remember how I did it. It had something to do with setting the movement height or something like that.

If you don’t want to follow this approach, why don’t you just add a branch node before the execution chain where you handle jumping, and bind it’s condition to a variable that changes it’s value accordingly after your flip flop node you got there?

Hi,

You can disable jumping from your Character BP > Character Movement component > set Can Jump to False.

I have developed an advanced, easy-to-setup terminal system available on the UE Marketplace.
It handles player and world interactions and it could speed up your development.
If you’re considering purchasing, I recommend waiting for the Fab launch, expected in about a week.

Hi Thanks I was looking for that option in that Blueprint.

Yes, it doesn’t seem you can set this boolean dynamically! :confused:

Okay I’ll try it that way. Thanks for the tips.

Try getting the Character Movement reference like this:

1 Like

That one got it. Thanks for that, I was using player controller, not the Player Character for it before. Thanks again.

1 Like