OnDying to interceptprevent death?

Post » Wed Jul 02, 2014 10:55 am

Does anyone know what's the logic between OnDying and OnDeath?

In particular, can OnDying be used to "replace" death. In what I have in mind, an actor would be teleported away when it "dies" (health drops to 0), but would be alive in where she ended up. Can the OnDying event do this, by healing the actor a huge amount, and then teleporting him out?

User avatar
Shaylee Shaw
 
Posts: 3457
Joined: Wed Feb 21, 2007 8:55 pm

Post » Wed Jul 02, 2014 12:34 pm

I use SetEssential and OnEnterBleedout, personally, and it seems to work fine for NPCs; trying it on the Player isn't that great, because there are a few other issues... :/

User avatar
Taylor Thompson
 
Posts: 3350
Joined: Fri Nov 16, 2007 5:19 am

Post » Wed Jul 02, 2014 8:11 am

You can just use Resurrect() to revive your actor after he dies.

User avatar
carley moss
 
Posts: 3331
Joined: Tue Jun 20, 2006 5:05 pm


Return to V - Skyrim