HasOwner - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Checks to see if this reference is owned in any way (by actor base, actor ref, or faction).

Syntax[edit | edit source]

bool Function HasOwner()

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

Whether this reference is owned

Examples[edit | edit source]

; check to see if the person has a hand node
if Chest.HasOwner()
  Debug.Trace("Someone owns that chest... better not take from it")
endIf

See Also[edit | edit source]