GetFirstOwnedObject - RefCollectionAlias

From Creation Kit
Jump to: navigation, search

Member of: RefCollectionAlias Script

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


ObjectReference function GetFirstOwnedObject(Actor actorOwner)


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

Return Value

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


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

See Also