Two-button controls (passive ability)
Hello, before I begin, please do bear with me if I seem a little hard to understand.
I have a few collisions that I enable at a press of a button in my game (Screenshots will be provided)
However, I would two inputs to trigger the collision because there would be several other collisions to enable.
I want the first button to serve as a passive or a toggle that grants you the ability to activate the collision. Sort of like turning on a fire mode before being able to release fire attacks.
I would really appreciate it if someone could help me with this.
Thanks for your time.
asked Mar 31 '18 at 08:19 AM in Blueprint Scripting
if your just looking to find a way to toggle the easiest way would be to use a flip flop. this would enable in your case the first time the input is pressed collision to be enabled, then the second time inputs pressed collision to be disabled. see the picture below method 1.
another method would be to use a variable to control the flow of the script as in the second method in the picture below. basically on key input you set the variable. its the same basic method as above but just done in a different way.
answered Mar 31 '18 at 02:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here