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

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

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

See Also