Death Animation Trigger

Hey guy’s, I’m making a horror style game just so I can learn more about unreal 4; I got the AI to chase and roam which is nice, I also added a trigger box on the AI if he touches me it restarts the game. But there’s this one thing I wanted to put in the game and that is to when I touch the AIs trigger box it will play the animation of me dying then I could add a delay for 5 seconds then open level again to restart the game. I already have the animation starter content, so that’s a start lol.

I’m more of a visual learner so screenshots would be very helpful thank you ^^

Sorry I don’t have a picture or anything but I think you should get this. Right-click in the content bowser and find a listbox called, animations, then click animation blueprint follow the steps and boom a animation. I mainly make 2d games so not 100% sure about the animation. As for in the blueprint editer there is a function called, delay, just search for it. So you can use that for the 5 second pause.

I hope this helps and have a great day :slight_smile:

I think you read my post wrong I’ll try to explain again,

My AI has a trigger box so I want to make it so when I touch the trigger box, it will play the death animation for my character. (I already have the animation made)

Sorry If I made it hard to explain on the first post.

Ok Let me try this again, I found a page on trigger boxs you can read the page here: Trigger Volume Actors in Unreal Engine | Unreal Engine 5.2 Documentation.
Also I found this page: https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Blueprints_Advanced/2_4/index.html (They use doors in their example)
Hope this is what you want :slight_smile:

No sorry, still not what I needed :frowning:

I found another form asking the same thing you asked: Is it possible to play animations with triggers? - Character & Animation - Epic Developer Community Forums

This uses the BeginOverlap event and EndOverlap event. This all I could find on this subject.

Okay that didn’t work at first for me, so I had to modify it myself to make it work and also added some extra bits like the death camera and restarting the level also adding a tag so nothing else will kill me.


Thanks for the help fp0707 ^^

You are welcome glad I could help :slight_smile: