Jump to content

Max Health Detection


DemonFire9842

Recommended Posts

I'm trying to make a regen effect, and I have it active using a quest script, and healing me fine. The only problem is that I am wearing a heavy raiment of valor, and that has a Fortify Health 10 Enchantment. The game still detects my health as 333, instead of the 343 it is with the enchantment. Is there any way around this, or does Oblivion just detect base health regardless of enchantments?

(I am using the Player.GetBaseActorValue Health Function to detect max health.)

Link to comment
Share on other sites

I'm trying to make a regen effect, and I have it active using a quest script, and healing me fine. The only problem is that I am wearing a heavy raiment of valor, and that has a Fortify Health 10 Enchantment. The game still detects my health as 333, instead of the 343 it is with the enchantment. Is there any way around this, or does Oblivion just detect base health regardless of enchantments?

(I am using the Player.GetBaseActorValue Health Function to detect max health.)

 

Use GetActorValue instead of GetBaseActorValue. GetActorValue will return the modified number (or it should, according to the cs wiki).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...