I made a take down function when a character stealthily kills a bot. Everything worked fine until I added the ability to hear to him. The bot starts shooting and changing its position during the animation, allegedly because it hears me. How can I fix it so that it doesn’t try to do anything during the take down animation?
Hey @658, welcome to the Unreal community!
The easiest way to do this short term would be to add a boolean variable to your takedown. Call it “IsBeingTakenDown” or something similar, the name isn’t all that important. Set that value to true when the takedown starts.
Then, in your branch node before AI move, add an AND node to your existing boolean and check against your new “IsBeingTakenDown” variable.
This is a simple solution that will fix your immediate issue, but if you take that sort of solution and apply it all over your project you will end up with spaghetti code before too long, with everything relying on a long line of boolean branches. This is where Blackboards and Behavior Trees come in.
I recommend going through the tutorial in the documentation I linked and seeing if that will work for your purposes.
I hope this information helps, and good luck!

