Mod:Creation Kit/GetResourceDamage - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

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

Syntax
float Function GetResourceDamage(ActorValue akAV = None) native

Parameters

 * 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.

Examples
float foodDamage = MyMutFruit.GetResourceDamage(Food) float allDamage = SanctuaryWorkshopRef.GetResourceDamage
 * How much damage has been done to MyMutFruit's Food resource?
 * What's the total amount of damage done to all resources on SanctuaryWorkshopRef?