Background for Fallout 4
Member of the ObjectReference script
floatfunctionGetResourceDamage(ActorValueakValue=NONE)Native

Description

Wiki Description

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

Documentation Comment

Get the total damage, if any, of the given resource or of all nonzero resource actor values.


Caveats


Parameters

ActorValueakValue=NONE

CK Wiki Description

If specified, a Resource-type Actor Value.

  • Default:None

Examples

; 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()

Auto-Generated Example

ActorValue myActorValue__akValue

float returnedValue = myObjectReference__toCallFunctionOn.GetResourceDamage(myActorValue__akValue)

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.