GetValue - ObjectReference

From the Fallout4 CreationKit Wiki
(Redirected from GetAV)
Jump to navigation Jump to search

Member of: ObjectReference Script

Gets the specified Actor Value from the Object Reference.

Syntax[edit | edit source]

float Function GetValue(ActorValue akAV) native

Parameters[edit | edit source]

Return Value[edit | edit source]

The value of the requested Actor Value.

Examples[edit | edit source]

ActorValue property HealthAV
; Obtain the player's current health actor value
int playersHealth = Game.GetPlayer().GetValue(HealthAV) as int


ActorValue property HealthAV
; Obtain Bob's current health actor value
int bobsHealth = Bob.GetValue(HealthAV) as int

See Also[edit | edit source]