Difference between revisions of "SetActorValue"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Kkuhlmann
 
imported>DoctaSax
(wrong intel about it applying to base form)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/SetActorValue SetActorValue]
{{Function
|CSWikiPage = SetActorValue
|origin = GECK1
|summary = SetActorValue sets the stat's base value to the new value.


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.
|name = SetActorValue
|alias = SetAV
|referenceType = Actor
|arguments =
  {{FunctionArgument
  |Name = StatName
  |Type = actorValue
  }}{{FunctionArgument
  |Name = Value
  |Type = int
  }}
|example = Player.SetActorValue Health 3
SetActorValue Strength 6
}}


===See Also===
 
 
== Notes ==
 
* 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]]<br>
[[Stats List]]<br>
[[ForceActorValue]]<br>
[[ForceActorValue]]<br>
Line 9: Line 32:
[[GetActorValueInfo]]<br>
[[GetActorValueInfo]]<br>
[[GetBaseActorValue]]<br>
[[GetBaseActorValue]]<br>
[[GetPermanentActorValue]]<br>
[[ModActorValue]]<br>
[[ModActorValue]]<br>
[[RestoreActorValue]]<br>
[[RestoreActorValue]]<br>


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Actor Value Functions]]
[[Category:Actor Value Functions]]
[[Category:Actor Value Functions (GECK 1.1)]]

Latest revision as of 10:55, 6 February 2017

< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: SetActorValue.

A function included in the GECK version 1.1.0.36.

Description

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

See Stats List for a list of stats that can be accessed using SetActorValue.

Syntax

[help]
Actor.SetActorValue StatName:actorValue Value:int 

Or:

Actor.SetAV StatName:actorValue Value:int

Example

Player.SetActorValue Health 3
SetActorValue Strength 6


Notes

  • 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