disabling an input key in certain areas
Is there a way to have a keyboard input(Y) that is only usable when the player is within a certain area, and deactivated when the player is out of the bounds?
asked Mar 13 '18 at 07:00 PM in Blueprint Scripting
Yes, try using a boolean value between the input key and the action. Then have a collision box or sphere encapsulate the area you want the input to work in. When within the input bounds you can use the "on component overlap" node to enable the input by setting the boolean to true, when the player leaves the area use the "on component end overlap" node to set the boolean back to false and prevent input execution.
answered Mar 13 '18 at 07:13 PM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here