Open main menu

UESPWiki β

Morrowind Mod:XHasItemEquipped

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE.

xHasItemEquipped returns 1 if the NPC or creature has the object equipped, 0 otherwise.

SyntaxEdit

equipped (long): ref->xHasItemEquipped objectid (string)

ExampleEdit

long npcRef
long isEquipped

Setx npcRef to xGetRef "character"
Setx isEquipped to npcRef->xHasItemEquipped "steel shortsword"

See AlsoEdit