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?
Okay does that work with jumping?
Of course! It affects the entire movement.
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!
Okay I’ll try it that way. Thanks for the tips.
That one got it. Thanks for that, I was using player controller, not the Player Character for it before. Thanks again.