How to pass by a variable by reference in a function and set it in blueprints?

anonymous_user_1ed1c3df
Sat, 30 Jul 2016 01:49:02 +0000
Blueprint

I’m not too new to the concepts in C++, I understand pointers, how they work, and I want to try to use something similar in blueprints if the system would let me.

I have a series of buttons that toggle their own bool when pressed and released. I recently discovered that my design is flawed because the Makey Makey I have buttons wired to only has an N-key rollover of 6. I’m redesigning my button scheme to instead of being held down to set a true and release to set as false, I’m going to tie them to a timer that sets their value to false after a few seconds. Given how the Set Timer by Function Name method works, I was going to write a method for the timer in my input class that uses the button’s bool as a parameter and toggle it off. However, I seem unable to set the what the parameter variable is. This is where in C++ I would pass a pointer and set what its pointing to in the method. How is this accomplished in blueprints?

Is there a better way to do a wait timer for what I want? I feel like I’m using this timer method incorrectly.

7 posts - 1 participant