GetResourceDamage - ObjectReference
Jump to navigation
Jump to 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.
Syntax[edit | edit source]
float Function GetResourceDamage(ActorValue akAV = None) native
Parameters[edit | edit source]
- akAV : If specified, a Resource-type Actor Value.
- Default: None
Return Value[edit | edit source]
The amount of damage for the specified actor value, or the sum of all damaged resource actor values.
Examples[edit | edit source]
; 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()