so what I did is, for every input action, I have to store the ‘input actions name’ to a variable
then used a “Switch on String” and convert that variable to text.
i have a fuction which is being used by 3 Input action, so inside that function i need to detect which input action is firing then do the things i need for that triggering input action?
whoah, Cool Lines, how did u do a straight line for Node Connection?
yes, its really same as this, alot of operators and computation, i have to de clutter my main bp, and the way i do it is always hide it inside of a function…
It is ok to use the same function but I would pass the input to an enums, or a values or expose all variables that is easier to use within the function
You don’t need flow control just add an input to your function (in this case the ange of the line trace) and pass that angle into your equation this way you only need the one function and the one line trace and then you call that function from each input action and you set the angle there so it works for each input action how you expect