UO.LTargetKind
From OpenEUO
Revision as of 09:54, 8 October 2010 by 76.184.213.234 (Talk)
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).
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.