GetActorRefOwner - ObjectReference

From the Fallout4 CreationKit Wiki
Revision as of 15:18, 2 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: 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[edit | edit source]

Actor Function GetActorRefOwner() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]