MultiGate Doesnt Work Inside Functions

Nsomnia
Thu, 02 Apr 2015 16:38:31 +0000
Blueprint

I am finding something weird as I clean up event graphs by taking inputaction events (aka an action mapping) that execute x number of nodes and turning those nodes into a function.

When I use an action mapping for something bound to say F3 (using it to switch camera components on a pawn) when I have a multigate set to loop == true, start index -1 and is random == false then Out0 changes to one camera, Out1 switches to next, and it repeats.

This works fine in event graph.

When I take gate and nodes after it and put them into a function however, It will only execute Out0.

I even tried Out0 and Out1 to be simple print strings, It will only execute Out0 no matter how many times I press f3 ( input action event) and I tried just using a regular key event too.

How to replicate:
-Create an action mapping in project settings to key of your choice
-Put InputAction ‘your_name_here’ node into event graph
-Create a function and have input action (or even just a simple key event) call it on “presssed”
-In function have it execute a gate (Like I said im using is random = false, loop = true, start index = -1, but settings dont matter) and have out0 PrintString > “hello world” and have out 1 PrintString > “Hello world again”,

Only out0 aka “Hello world” will be printed.

7 posts - 6 participants