Background for Fallout 4
Member of the ObjectReference script
floatfunctionGetWorkshopResourceDamage(ActorValueakValue)Native

Description

Wiki Description

Returns the total amount of damage on either the given resource actor value across all items in the Workshop.

Documentation Comment

Get the total damage, if any, of the given resource on the Workshop.


Caveats


Parameters

ActorValueakValue

CK Wiki Description

A Resource-type Actor Value.


Examples

; What's the total amount of Food damage on all food producers in SanctuaryWorkshopRef?
float allDamage = SanctuaryWorkshopRef.GetWorkshopResourceDamage( Food )

Auto-Generated Example

ActorValue myActorValue__akValue

float returnedValue = myObjectReference__toCallFunctionOn.GetWorkshopResourceDamage(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.