Mod:Creation Kit/GetActorRefOwner - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Gets the Actor reference that owns this object. Will return None if the object isn't owned by a specific actor reference, OR if the owning actor is not currently loaded/persisting.

Syntax
Actor Function GetActorRefOwner native

Parameters
None.

Return Value
The Actor reference that owns this object (if owned by a specific Actor ref; otherwise, None).

Examples
Actor actorSelf = (Self As Actor) bool selfOwnsSword = (SwordProperty.GetActorOwner == actorSelf)
 * Is this actor the owner of the sword?