Open main menu

UESPWiki β

Morrowind Mod:XGetRef

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE.

xGetRef gets a reference to one of the active objects that match the object ID. An active object is an object in one of the loaded cells, or a persistent object such as an NPC.

SyntaxEdit

reference (long): ref->xGetRef object_id (string)

ExampleEdit

long player

SetX player to xGetRef "Player"

See AlsoEdit