Description
Wiki Description
Gets the specified actor value from the actor.
Documentation Comment
Gets the specified actor value - returns 0 and logs an error if the value is unknown
Caveats
CK Wiki - Notes
- GetActorValue is slightly faster than GetAV as it is native.
- This function returns the current value as opposed to the base (maximum) value. To get the base value see Actor.GetBaseActorValue(...).
Parameters
stringasValueName
CK Wiki Description
The name of the actor value to get the value of. Actor Value List
Examples
; Obtain the player's current health actor value
Float fPlayerHealth = Game.GetPlayer().GetActorValue("Health"); Obtain Bob's current Sneak actor value
Float fBobSneak = Bob.GetAV("Sneak")Auto-Generated Example
string myString__asValueName
float returnedValue = myActor__toCallFunctionOn.GetActorValue(myString__asValueName)Related Pages
- Actor.GetBaseActorValue(...)
- Actor.GetActorValuePercentage(...)
- Actor.GetActorValueMax(...)
- Actor.DamageActorValue(...)
- Actor.ModActorValue(...)
- Actor.ForceActorValue(...)
- Actor.RestoreActorValue(...)
- Actor.SetActorValue(...)
- Actor Value List
- Actor
