Disable Input Not Working Properly?
I'm having some issues with my "Disable Input" nodes. I'm likely using them incorrectly, but I'm having a lot of trouble and would really appreciate the help.
As may not be suggested by the below image, here is what I'm attempting to do:
I have several different box triggers or volume triggers to interaction with my level through the level blueprint. The "F" key is the only keystroke used to interact with these different triggers. As the player enters the trigger, their input is enabled for that single trigger. Once the F is pressed, their input is disabled until the later of the following happens: they leave the box, or the animation finishes running. Once the animation is complete and or they've left the box, they can press it again for a new action.
That is what I want to happen.
As of right now, based on the level blueprint below, once the player enters in the trigger, their input should enabled, and then disabled immediately after "F" is pressed. But that is not the case. The player can press the "F" key as much as they want, as it does not look like their input has been disabled. Also, it affects all other triggers tied to the F key.
Also, and even more importantly: How do you ensure that "F" pressed only effects the trigger box you're currently in? Right now, pressing the F while input is enabled in any of the trigger boxes will active anything in the level blueprint that is tied to an "F" key press. For example: if I hit the lightswitch on one side of the room, it will activate all of the lights assigned to an "F", not just those that are tied to the trigger box.
I really appreciate any help anyone can provide.
asked Nov 29 '14 at 10:17 AM in Blueprint Scripting
Most of your troubles stem from having all this in your Level Blueprint. Anytime F is pressed, it interacts with anything in the level that accepts that input. Generally, it's a better idea to leave anything out of the Level Blueprint that can be done elsewhere. For something like this, you have a few options that should work for you.
Hope that helps!
answered Dec 03 '14 at 12:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here