Setting Branch False Works But True Doesn't, and it makes no sense

Take a look at the following:

Notice how when I’m holding grab, is held is on, when I let go, is held is turned off.

Then


These bad girls are in event tick, so they work every frame

Notice the Branch says if false, meaning if it is not held, it shouldn’t work.

This function you see here was supposed to be in that green box in the start.

What you need to know is the code as seen here allows me to grab the air and climb it, which is good, I intended for that. What I don’t understand is why they work under the conditions set here since it makes no sense.

I need to make sure the branch only triggers when true, and for the start climb function to be in an action put that works every frame.

We’d need to see how you configured your input event. Note that triggered is only fired after Started and Completed have triggered and only if it met all the trigger requirements. So Started and Completed can be fired without Triggered.

If you set your trigger to be on a combo press and release, then Started will fire when you press the button… then when you release the button, Completed will fire then Triggered will fire.

If you didn’t set it as a combo, then weird things will happen the way you’re using it. You’ll get all three in quick succession on both pressed and released depending on what you’re using as trigger.

Triggered is the last thing to fire, so not sure I agree with your statement. In fact, Completed always fires before Triggered so you’d turn off Held then turn it immediately back on. But Triggered doesn’t always trigger even if Completed triggered.

1 Like

Unfortunately, I can’t undo mistakingly clicking solution here. You have helped, further assistance I need.

I know that the way to make it so it responds correctly to true is to reverse the is Held R settings.

Climbing the air works properly that way.

What I don’t get now is why does start climb work in this picture.

I plug into Started: I teleport.

Ongoing: Nothing happens

Completed: Works for one frame and even then, only when I let go.

Triggered: Works. Confusing however, since you told me Triggered happens in the end of everything.

Is Held R will only be ticked off when I let go. Makes sense. But then why does Start Climb Work at all in this circumstance?

you’ve got it in a sequence not in the branch.

you also likely dont want start climb on tick.

because you havent set the RightHandPosition that frame

yep completed only fires on release

triggered is basically tick for the input

as said above because its in sequence on tick

1 Like

Pretend Branch False Says True


I get that, but if on every frame (Is Held R) is being ticked off, why does my Hand Position update properly?

This Function is in Event Tick

sorry i don’t completely understand the question or the code,

because in the code you set held to true on completed (ie when its not held)

but assuming its true on tick the RighthandPosition wont update but will still have the last value saved

if you want to debug it yourself you can add a print string in the tick printing the bool value or even the vector

1 Like