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

WaitTargetTile

Pre-sets a target hook that will automatically target the specified tile at the given coordinates.

Tile — graphic ID of the tile to target.

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.

Does nothing if the character is not connected.

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

Tile — graphic ID тайла-цели.

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

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

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

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

Pascal

procedure WaitTargetTile(Tile: Word; X: Word; Y: Word; Z: ShortInt);

Python

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

Pascal Example

begin
  WaitTargetTile($0001, GetX(Self), GetY(Self), GetZ(Self));
  Cast(spFireField);
  Wait(3000);
end.

Python Example

WaitTargetTile(0x0001, GetX(Self()), GetY(Self()), GetZ(Self()))
Cast(Spell.FireField)
Wait(3000)

See Also

WaitTargetObject, WaitTargetXYZ, WaitTargetGround