Difference between revisions of "SetActorValue"

6 bytes added ,  13:20, 9 December 2007
Standardized, shortened the player explanation
imported>Windscion
(caveat for Player.SetAV Health)
imported>Haama
(Standardized, shortened the player explanation)
Line 8: Line 8:
SetActorValue sets the stat's base value to the new value.  
SetActorValue sets the stat's base value to the new value.  


'''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.
==Notes==
 
*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.
*For the player, this will not modify base health. Base health is determined by (Endurance * [[fPCBaseHealthMult]]). For example, a level 2 player with 40 Endurance will have 80 base health (40 * 2 = 80) and 4 more health (from the Endurance level bonus). If you use '''player.SetAv Health 100''' the player will have 180 total health - 80 from base health, and 100 for the rest.
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]]
 
*[[GetActorValue]]
[[GetActorValue]]
*[[GetBaseActorValue]]
 
*[[ModActorValue]]
[[GetBaseActorValue]]
*[[ForceActorValue]]
 
[[ModActorValue]]
 
[[ForceActorValue]]




Anonymous user