I was trying to make a function in place of a mess of floats, my goal was to make a “hold button timer”, basically just adding .1 to a number every .1 seconds, once it reaches 1, trigger the action. However I noticed functions seem to just run with the default values, as in Set Variable 1 as Variable 1 + Variable 2 will always result in the same number within a function, even though outside of the function that would make it gradually rise. It works just fine outside of a function, I just wanted a cleaner version of it in my BP.
Is there anything I can do to get around this? I wanted a function where I could just input different values if necessary to make holding the input down shorter or longer.