Difference between revisions of "LTargetZ"
From Wiki
Line 10: | Line 10: | ||
'''NOTE:''' | '''NOTE:''' | ||
* #lTargetKind must be set to 2 or 3 for event Macro 22 to use the target position. | * #lTargetKind must be set to 2 or 3 for event Macro 22 to use the target position. | ||
+ | |||
+ | ==== Example ==== | ||
+ | <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> | ||
Revision as of 08:09, 18 August 2005
#lTargetZ
Last Action System Variables
Description
⇔
The #lTargetZ system variable determines the world z-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 |