Returning the current animation frame?

I have an animated character (mesh), I want to return the current animation frame number via a function. Is there a built-in function for this purpose? (I searched the manual and couldn’t find anything relevant)

I need something like animation.GetFrame().

Thanks in advance.

there is no such thing and commonly you wouldn’t get an answer from it as you are 95% of the time between frames, not on a frame

Hmm, I wanted to do something like “fire when animation frame is 45”. Guess I’ll need to work on timing it then. Because I want my AI character to fire exactly when it raises it’s hand and it’s a looped animation. Any other suggestions than firing each 4-5 seconds when in attack stance?

The workaround at the time is likely coroutines.

Once 2.6 is out or if you work with 2.1, the answer is the animation tool which is not present in 2.5

okay dreamora, thanks for the help I appreciate it.

the repeated invoke call might also be an option if it is meant to repeat multiple times, instead of coroutine I mean