Hi Everyone
So I have a stun animation for my enemy ai and it’s set up so if my BulletBP hits the enemy, the enemy is stunned for the duration (7 and a half seconds) and then disappears. But the destroy actor node is not working. I need to have the code setup for both the bulletbp and my character for the bullet to shoot out from the stun gun I have but the destroy actor node isn’t working.
Any help or suggestions would be great! because I’ve been trying to fix this all day yesterday.
The enemy has to play the stun animation, right? Then it can use the destroy node on itself.
so for the destroy actor node, I don’t have to cast it to my AI_Classic node?
Nope, if you call it in your AI ( where I presume you call the animation ), you can just use the node directly.
I actually don’t call it in my enemy AI, i set the BP up for both my character and the BulletBP with a sphere collision, so if the ai overlaps with the sphere collision either in the BulletBP or from my character blueprint, it triggers the animation, wait until the animation is done, and then it destroys actor
this is what i have for the bulletbp, my character, and the enemy AI
You can pull from the actor pin here

and call destroy.