UO.LTargetKind

From OpenEUO
Revision as of 09:52, 8 October 2010 by 76.184.213.234 (Talk) (Created page with " 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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 Event Macro 22 you must always make sure UO.LTargetKind is set properly beforehand or you will most likely have sporadic targeting problems.