Does anyone know how to turn collision off by code?

I’m having a problem where my enimies death animation resets after a shoot them during the animation. I’ve tried to fix it but I don’t have a lot of experience. Haven’t found anything on it either. Pls help!

In code no…in blueprints yes. There is a “set collision enabled” node you can use to toggle collision on and off.

You could also use a “do once” node after the enemy dies and before you trigger the death animation this way no matter how many times you shoot the enemy it will only ever play the animation once