Difference between revisions of "UO.LTargetKind"
From OpenEUO
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
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. | 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]] |
Latest revision as of 12:33, 9 October 2010
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.