Getting Damage From a Hit?

Post » Mon Jun 18, 2012 5:32 am

Is it possible to get the damage caused by a hit including damage caused by enchantments?

I suppose I could retrieve the actors health before and after the hit, but I'm not sure how. Any ideas?
User avatar
Marie
 
Posts: 3405
Joined: Thu Jun 29, 2006 12:05 am

Post » Mon Jun 18, 2012 10:40 am

The only thing i can think of is Getting a actor value Health and calculating the new Health results

Now your going to have to rearrange the code to goto specific scripts or so to actually calculate it
int old_healthint new_healthold_health = (player.GetActorValue("Health") as int)new_health = old_health - (player.GetActorValue("Health") as int)
User avatar
Eve Booker
 
Posts: 3300
Joined: Thu Jul 20, 2006 7:53 pm

Post » Mon Jun 18, 2012 7:33 am

Yep thats what I'm talking about, but what I'm looking for is the script architecture. I'm not too familiar with scripting so I'm not sure if I should be looking at states, events or just plain old Events like OnHit.
User avatar
Jason King
 
Posts: 3382
Joined: Tue Jul 17, 2007 2:05 pm


Return to V - Skyrim