How to get the accumulated time of a state in the state machine

Hello guys,




My Goal is:

I want to get the accumulated time of A state, and if it’s greater than seconds I set, then I can jump into B state.




I wonder if it has any built-in node in Transition Rules that can reach that function, or I have to put a timer when enter A state and start the timer.




The animation in A state is loop animation

1 Like

In the animation blueprint you have states

and the little nodes between the states is where you put your requirement on seconds:

349816-screenshot-5.jpg

349817-screenshot-6.jpg

Ok, my isn’t a float reaching a certain value, but this is where you put it.

Further reading:

Thanks for your answer, maybe I didn’t describe clearly. I want the elapsed time of certain state.
Fortunately, I found it, it’s called “Current State Time” Node. But thanks you a lot.

I got the answer, the node it’s called “Current State Time” Node.

It can get the current elapsed time of specified state machine.

2 Likes