GetWorkshopOwnedObjects - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

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


ObjectReference[] Function GetWorkshopOwnedObjects(Actor akActor) native


  • akActor: The owning actor.

Return Value

An array of references owned by the Actor.


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


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