Difference between revisions of "SetActorValue"
Jump to navigation
Jump to search
imported>Henning |
imported>DewiMorgan m (Removing duplicate data.) |
||
Line 4: | Line 4: | ||
See [[Stats List]] for a list of stats that can be accessed using SetActorValue. | See [[Stats List]] for a list of stats that can be accessed using SetActorValue. | ||
SetActorValue sets the stat's base value to the new value. | SetActorValue sets the stat's base value to the new value. | ||
Syntax: | Syntax: | ||
Line 30: | Line 16: | ||
:SetActorValue Strength 10 | :SetActorValue Strength 10 | ||
:player.SetActorValue Lockpick 70 | :player.SetActorValue Lockpick 70 | ||
:SetAV Perception 2 | |||
Revision as of 03:39, 11 January 2012
This article is incomplete. You can help by filling in any blank descriptions. Further information might be found in a section of the discussion page. Please remove this message when no longer necessary. |
Link to TES4 Construction Set Wiki: SetActorValue
See Stats List for a list of stats that can be accessed using SetActorValue.
SetActorValue sets the stat's base value to the new value.
Syntax:
- SetActorValue StatName Value
- SetAV StatName Value
Example:
- SetActorValue Strength 10
- player.SetActorValue Lockpick 70
- SetAV Perception 2
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. * 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.
See Also
Stats List
ForceActorValue
GetActorValue
GetActorValueInfo
GetBaseActorValue
GetPermanentActorValue
ModActorValue
RestoreActorValue