Difference between revisions of "GetWorkshopResourceDamage - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
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...")
 
imported>Qazaaq
m (added category)
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:Workshop]]
'''Member of:''' [[ObjectReference Script]]
'''Member of:''' [[ObjectReference Script]]



Latest revision as of 22:32, 19 October 2016

Member of: ObjectReference Script

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

Syntax[edit | edit source]

float Function GetWorkshopResourceDamage(ActorValue akAV = None) native

Parameters[edit | edit source]

  • akAV : A Resource-type Actor Value.

Return Value[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]