Open main menu

UESPWiki β

Morrowind Mod:XGetPCTarget

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE

xGetPCTarget returns a reference to the object in the player's crosshair or 0 if the player is not looking at anything that can be manipulated by the player.

SyntaxEdit

reference (long): xGetPCTarget

ExampleEdit

long pcTarget

Setx pcTarget to xGetPCTarget
ifx ( pcTarget )   ; game crashes if you call a function on pcTarget while it's 0
    ; do things
endif

See AlsoEdit