IsOwner - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Checks to see if the actor is the owner of the specified reference.

Syntax

bool Function IsOwner(ObjectReference akObject)

Parameters

  • akObject: The object to check ownership of.

Return Value

Does this actor own the object? (Checks ref, base object, and faction ownership)

Examples

; Does Arthur own the sword?
if (Arthur.IsOwner(SwordInStone))
  Debug.Trace("Hail!")
endIf

See Also