GetAV("Health") alway returns zero

Post » Fri Nov 16, 2012 5:09 pm

When I use a GetAV("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 through the console it returns the right number. This is what im doing more or less. The DamgeAV works fine.

Event OnEffectStart(Actor akTarget, Actor akCaster)

While ( akTarget.GetAV("heatlh") as int < 20)
Utility.Wait(1)
akTarget.DamageAV("health", 5)
endWhile

endEvent
User avatar
Daramis McGee
 
Posts: 3378
Joined: Mon Sep 03, 2007 10:47 am

Post » Fri Nov 16, 2012 2:55 pm

I assume you don't have that typo in your source script?

What's the spell you're using it with?
User avatar
Crystal Clear
 
Posts: 3552
Joined: Wed Aug 09, 2006 4:42 am

Post » Fri Nov 16, 2012 1:08 pm

It is on a Disease I made. There isn't really anything outside of what I posted besides the scriptname and extends activemagiceffect
User avatar
Stephanie Valentine
 
Posts: 3281
Joined: Wed Jun 28, 2006 2:09 pm

Post » Fri Nov 16, 2012 8:16 pm

But you spelled "health" correctly in the original code? Because you have a typo on it here.
User avatar
lillian luna
 
Posts: 3432
Joined: Thu Aug 31, 2006 9:43 pm

Post » Fri Nov 16, 2012 9:47 am

Well if you stare at something long enough you don't see the obvious things.
User avatar
RObert loVes MOmmy
 
Posts: 3432
Joined: Fri Dec 08, 2006 10:12 am

Post » Fri Nov 16, 2012 9:34 am

Happens to the best of us!
User avatar
Sunny Under
 
Posts: 3368
Joined: Wed Apr 11, 2007 5:31 pm


Return to V - Skyrim