Difference between revisions of "GetWorkshopOwnedObjects - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Kalevala
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

Finds all references linked to the Workshop reference that are owned by the given Actor.

Syntax[edit | edit source]

ObjectReference[] Function GetWorkshopOwnedObjects(Actor akActor) native

Parameters[edit | edit source]

  • akActor: The owning actor.

Return Value[edit | edit source]

An array of references owned by the Actor.

Examples[edit | edit source]

; Find all objects in the SanctuaryWorkshopRef workshop owned by the actor Bob.
ObjectReference[] bobsStuff = SanctuaryWorkshopRef.GetWorkshopResourceObjects(Bob)

Notes[edit | edit source]

The ObjectReference must have a LinkedRef to the Workshop via the WorkshopItemKeyword keyword in order to be found by this function. This is done automatically when an object is placed in WorkshopMode, but must be done manually if you spawn the ObjectReference with a script.

See Also[edit | edit source]