GetWorkshopResourceDamage - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 11:51, 9 September 2014 by imported>DarkruneDK (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Returns the total amount of damage on either the given resource actor value across all it...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax

float Function GetWorkshopResourceDamage(ActorValue akAV = None) native

Parameters

  • akAV : A Resource-type Actor Value.

Return Value

The amount of damage for the specified actor value across all relevant items in the Workshop.

Examples

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

See Also