Difference between revisions of "SetActorValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Maturin
 
imported>Neuman
Line 3: Line 3:
  SetAV ''StatName value''
  SetAV ''StatName value''
'''Example:'''  
'''Example:'''  
  SetActorValue Strength 60  
  SetActorValue Strength 60
Player.SetActorValue Alteration 50


SetActorValue sets the stat's base value to the new value.  
SetActorValue sets the stat's base value to the new value.  

Revision as of 14:00, 28 March 2006

Syntax:

SetActorValue StatName value
SetAV StatName value

Example:

SetActorValue Strength 60
Player.SetActorValue Alteration 50 

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.


See Also

Stats List

GetActorValue

ModActorValue