GetActorValueMax - Actor

Revision as of 16:39, 3 October 2017 by imported>Jlundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Actor Script ''(Requires SSE 1.5.3)'' Obtains the actor value's current maximum (taking into account buffs an...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script (Requires SSE 1.5.3)

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

SyntaxEdit

float Function GetActorValueMax(string asValueName) native
float Function GetAVMax(string asValueName)
  return GetActorValueMax(asValueName)
EndFunction

ParametersEdit

Return ValueEdit

The maximum value the actor value may have, currently.

ExamplesEdit

; 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

See AlsoEdit