GetFirstOwnedObject - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: RefCollectionAlias Script

Returns first reference in collection that is owned by the specified actor

Syntax[edit | edit source]

ObjectReference function GetFirstOwnedObject(Actor actorOwner)

Parameters[edit | edit source]

  • actorOwner: The actor whose ownership we're looking for

Return Value[edit | edit source]

First owned reference in the collection. None if nothing owned is found.

Examples[edit | edit source]

;find player owned object
ObjectReference myObject = Alias_StolenItems.GetFirstOwnedObject(Game.GetPlayer())

See Also[edit | edit source]