GetResourceDamage - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Returns the total amount of damage on either the given resource actor value, or all resource actor values on this object.


float Function GetResourceDamage(ActorValue akAV = None) native


  • akAV : If specified, a Resource-type Actor Value.
    • Default: None

Return Value

The amount of damage for the specified actor value, or the sum of all damaged resource actor values.


; How much damage has been done to MyMutFruit's Food resource?
float foodDamage = MyMutFruit.GetResourceDamage(Food)

; What's the total amount of damage done to all resources on SanctuaryWorkshopRef?
float allDamage = SanctuaryWorkshopRef.GetResourceDamage()

See Also