Difference between revisions of "LTargetY"
From Wiki
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
{{rw}} | {{rw}} | ||
+ | |||
+ | The #lTargetY system variable determines the world y-coordinate of the last target used. | ||
+ | |||
+ | '''NOTE:''' | ||
+ | * #lTargetKind must be set to 2 or 3 for event Macro 22 to use the target position. | ||
==== Example ==== | ==== Example ==== | ||
<pre> | <pre> | ||
+ | ; use the shovel | ||
+ | set #lObjectID %shovel | ||
+ | event Macro 17 | ||
+ | |||
+ | ; wait for target cursor | ||
+ | target 5s | ||
+ | ; mine a spot | ||
+ | set #lTargetX 1000 | ||
+ | set #lTargetY 1000 | ||
+ | set #lTargetZ -1 | ||
+ | set #lTargetKind 3 | ||
+ | event Macro 22 | ||
+ | ... | ||
</pre> | </pre> | ||
==== See Also ==== | ==== See Also ==== | ||
{| | {| | ||
− | | Width=200px | | + | | Width=200px | [[Var lTargetID|#lTargetID]] || Width=200px | [[Var lTargetX|#lTargetX]] || Width=200px | [[Var lTargetY|#lTargetY]] || Width=200px | [[Var lTargetZ|#lTargetZ]] || Width=200px | [[Var lTargetKind|#lTargetKind]] |
|} | |} | ||
---- | ---- |
Revision as of 08:11, 18 August 2005
#lTargetY
Last Action System Variables
Description
⇔
The #lTargetY system variable determines the world y-coordinate of the last target used.
NOTE:
- #lTargetKind must be set to 2 or 3 for event Macro 22 to use the target position.
Example
; use the shovel set #lObjectID %shovel event Macro 17 ; wait for target cursor target 5s ; mine a spot set #lTargetX 1000 set #lTargetY 1000 set #lTargetZ -1 set #lTargetKind 3 event Macro 22 ...
See Also
#lTargetID | #lTargetX | #lTargetY | #lTargetZ | #lTargetKind |
Main_Page | Documentation | Last Action System Variables |