Mod:Creation Kit/GetFirstOwnedObject - RefCollectionAlias

Member of: Mod:Creation Kit/RefCollectionAlias Script

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

Syntax
ObjectReference function GetFirstOwnedObject(Actor actorOwner)

Parameters

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

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

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