How to make NPCs play animations (idle) when he is dead?

Post » Wed Feb 03, 2016 3:27 pm

Hello everybody! Just want to warn - use Google translator.


Right to the point. How to make NPCs play animations (idle) when he is dead?


The idea is this - I created a ghost, and when he dies - he should play standard animations (idle). If you can, tell me the script.


Thank you!
User avatar
Christine Pane
 
Posts: 3306
Joined: Mon Apr 23, 2007 2:14 am

Post » Wed Feb 03, 2016 3:34 pm

You can start an animation like this:



Debug.SendAnimationEvent( actorTarget, "IdlePlayer" )

In CreationKit, you can see the animations that can be called via their "Anim Event" name under Gameplay->Animations.



That said, the idea you are working on sounds like it will require more than just starting the idle animation to make it work properly.

User avatar
KU Fint
 
Posts: 3402
Joined: Mon Dec 04, 2006 4:00 pm

Post » Thu Feb 04, 2016 1:32 am

You could use StartDeferredKill(Actor), and then once their Health is <= 0, start your Animation; that's how I handled Vampire "death animations" in my Mod--it's not 100% perfect, but it might be a starting point for your goal :)

User avatar
Mashystar
 
Posts: 3460
Joined: Mon Jul 16, 2007 6:35 am


Return to V - Skyrim