Background for Fallout 4
Member of the ObjectReference script
ActorBasefunctionGetActorOwner()Native

Description

Wiki Description

Gets the ActorBase that owns this object. Will return None if the object isn't owned by an actor.

Caution! If the owner of this object is a specific Actor (a reference rather than an ActorBase), this function will still return the ActorBase for that Actor. To determine whether this object is owned by a specific actor or an ActorBase, check ObjectReference.GetActorRefOwner() first. If that returns None, only then should you check this function.

Documentation Comment

Gets the ActorBase that owns this object (or None if not owned by an ActorBase)
CAUTION: if owned by an Actor Ref, this will return the ActorBase of that Actor ref.


Examples

; Does the player own the sword?
bool playerOwnsSword = (SwordProperty.GetActorOwner() == Game.GetPlayer().GetActorBase())

Auto-Generated Example

ActorBase returnedValue = myObjectReference__toCallFunctionOn.GetActorOwner()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.