Difference between revisions of "LTargetID"
From Wiki
Line 1: | Line 1: | ||
− | + | {{header|Last Action|rw|The #lTargetID system variable determines the id of the last target used. You can also write to this variable and use it in conjuction with "event Macro 22" (LastTarget), which will target the object as if it was clicked with the mouse.}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | The #lTargetID system variable determines the id of the last target used. You can also write to this variable and use it in conjuction with "event Macro 22" (LastTarget), which will target the object as if it was clicked with the mouse. | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | {{note|[[lTargetKind|#lTargetKind]] must be set to 2 or 3 for event Macro 22 to use the target position.}} | ||
==== Example ==== | ==== Example ==== | ||
Line 27: | Line 18: | ||
... | ... | ||
</pre> | </pre> | ||
− | + | {{footer}} | |
− | { | + | |
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + |
Revision as of 12:28, 26 August 2005
⇔ | The #lTargetID system variable determines the id of the last target used. You can also write to this variable and use it in conjuction with "event Macro 22" (LastTarget), which will target the object as if it was clicked with the mouse. |
Note: | #lTargetKind must be set to 2 or 3 for event Macro 22 to use the target position. |
Example
; use the dagger set #lObjectID %dagger event Macro 17 ; wait for target cursor target 5s ; carve the hides from the corpse set #lTargetID %cowCorpse set #lTargetKind 1 ; make sure it targets an object event Macro 22 ...
See also
Main Page | Documentation |