Name
#lTargetKind — (read/write) Determines the kind of what was last targeted.
Description
The #lTargetKind system variable determines the kind of what was last targeted:
Table 26. #lTargetKind values.
| Value | Description |
|---|
| 1 | Object. |
| 2 | Ground/Mountains/Caves. |
| 3 | Resource/Tree. |
Object 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
...
World 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
...