Background for Skyrim SE
Member of the Actor script
floatfunctionGetActorValueMax(stringasValueName)Native

Description

Wiki Description

Obtains the actor value's current maximum (taking into account buffs and debuffs).

Documentation Comment

Gets the specified actor value's max, taking into account buffs/debuffs


Caveats


Parameters

stringasValueName

CK Wiki Description

The name of the actor value to get the max of. Actor Value List


Examples

; Obtain the player's current health maximum value
float playersHealth = Game.GetPlayer().GetActorValueMax("health")
if (playersHealth > 100)
  Debug.Trace("The player has buffed their health at least once - or is under some effect buffing health")
endIf
; Obtain Bob's current maximum health actor value
float bobsHealth = Bob.GetAVMax("Health")
if (bobsHealth < 10)
  Debug.Trace("Bob is unlikely to live very long")
endIf

Auto-Generated Example

string myString__asValueName

float returnedValue = myActor__toCallFunctionOn.GetActorValueMax(myString__asValueName)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.