Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

WaitTargetXYZ

Pre-sets a target hook that will automatically target the specified map coordinates without a tile graphic.

X, Y — horizontal and vertical map coordinates.

Z — altitude of the target.

If a target cursor is already active at the moment of the call, the hook fires immediately. Otherwise, the hook waits for the next incoming target cursor and responds to it automatically (tile graphic = 0).

Does nothing if the character is not connected.

Предустанавливает ловушку таргета, которая автоматически нацелится на указанные координаты карты без graphic тайла.

X, Y — горизонтальная и вертикальная координаты карты.

Z — высота цели.

Если курсор цели уже активен в момент вызова, ловушка срабатывает немедленно. Иначе ловушка ожидает следующий входящий курсор цели и автоматически нацеливается (graphic тайла = 0).

Не выполняет действий, если персонаж не подключён.

Pascal

procedure WaitTargetXYZ(X: Word; Y: Word; Z: ShortInt);

Python

def WaitTargetXYZ(X: int, Y: int, Z: int) -> None: ...

Pascal Example

begin
  WaitTargetXYZ(1234, 5678, 0);
  Cast(spTeleport);
  Wait(2000);
end.

Python Example

WaitTargetXYZ(1234, 5678, 0)
Cast(Spell.Teleport)
Wait(2000)

See Also

WaitTargetTile, WaitTargetObject