My StateMachine is triggered in a loop as long as transition boolean is true.
I have made sure my code only runs once, where I set the animation bool:
This does trigger the transition but the problem is that it re-triggers every frame as long as the bool is true. I had the same issue with a normal state earlier, but there I could turn off "Can transition to self" which solved it. However a StateMachine does not have that option.
I want the animation to play until the bool is set back to false, so using a trigger would not be good here.
EDIT: For some reason it seems the "Transition duration" is the one resetting my animation. So if I change that to 3, it re-enters every 3 seconds, and so on. This seems really weird?
How do I just make sure that the animation plays until its done, then it re-enters (to choose another random talking animation from my StateMachine), as long as
talk == true?