Background for Fallout 4
Member of the ObjectReference script
floatfunctionGetValue(ActorValueakAV)Native

Description

Wiki Description

Gets the specified Actor Value from the Object Reference.

Documentation Comment

Gets the specified actor value - returns 0 and logs an error if the value is unknown


Caveats


Parameters

ActorValueakAV

CK Wiki Description

The Actor Value to get the value of. Actor Value


Examples

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

Auto-Generated Example

ActorValue myActorValue__akAV

float returnedValue = myObjectReference__toCallFunctionOn.GetValue(myActorValue__akAV)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.