UO.LTargetKind

From OpenEUO
Jump to: navigation, search
UO.LTargetKind

⇔ Returns the class of object that was last targeted. The possible values of this variable are listed in the table below. This variable should also be properly set before using UO.Macro(22) (Last Target macro).

UO.LTargetKind Values
Setting Object Class
1 Object
2 Ground,Mountains,Caves
3 Resource: Tree,Water

Note: Not setting UO.LTargetKind (usually to 1, to target objects) is by far one of the most common mistakes made when scripting. Simply put, every time that you use UO.Macro(22) you must always make sure UO.LTargetKind is set properly beforehand or you will most likely have sporadic targeting problems.

UO.LTargetID

UO.LTargetTile

UO.LTargetX

UO.LTargetY

UO.LTargetZ

UO.Macro