Open main menu

UESPWiki β

Morrowind Mod:XGetOwner

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE.

XGetOwner returns a 0 if the object is not owned, the objectid of the owner of the item if it is owned by a specific NPC or the string "unknown" if it is owned by a faction or controlled by a variable.

SyntaxEdit

owner (string): ref->xGetOwner

ExampleEdit

long owner
long itemRef

setx owner to itemRef->XGetOwner

See AlsoEdit