GetActorValue("Health") alway returns zero

Post » Fri Nov 16, 2012 9:21 am

When I use a GetActorValue("Health") it seems to always return zero on any actor I do it on. I have tried converting it to a int still zero. Is Health not the right label? If I do getav in game it returns the right number. This is what im doing.

Event OnEffectStart(Actor akTarget, Actor akCaster)
While ( akTarget.GetAV("Heatlh") as int < 20)
Utility.Wait(1)
akTarget.DamageAV("health", 5)

endWhile
User avatar
Mrs shelly Sugarplum
 
Posts: 3440
Joined: Thu Jun 15, 2006 2:16 am

Return to V - Skyrim

cron