[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "SetActorValue"
Jump to navigation
Jump to search
caveat for Player.SetAV Health
imported>ShadowDancer m (formatting) |
imported>Windscion (caveat for Player.SetAV Health) |
||
Line 10: | Line 10: | ||
'''Note:''' Although called on a reference, this function actually changes the value on the base actor (thus the base value on all references of that base actor). Note also that [[ModActorValue]] modifies the stat value only on the reference, and so is usually preferable. | '''Note:''' Although called on a reference, this function actually changes the value on the base actor (thus the base value on all references of that base actor). Note also that [[ModActorValue]] modifies the stat value only on the reference, and so is usually preferable. | ||
'''Note:''' There is a subtlety when using Player.SetActorValue Health -- what is set is not the PC's total health, but that portion not due to their current endurance attribute. | |||
Hence, | |||
*set igor to Player.GetAV Health | |||
*Player.SetActorValue Health igor | |||
will increase the PC's maximum health by the amount due to their endurance. (E.g., 2xEND in vanilla, 1.5xEND in OOO.) | |||
==See Also== | ==See Also== | ||
[[Stats List]] | [[Stats List]] |