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

CancelWaitTarget

Cancels the current target trap (set by WaitTargetObject, WaitTargetXYZ, WaitTargetTile, etc.).

After cancelling, the next target cursor from the server will not be auto-answered and will remain pending until handled manually or by a new trap.

Отменяет текущую ловушку на таргет (установленную через WaitTargetObject, WaitTargetXYZ, WaitTargetTile и т. д.).

После отмены следующий курсор таргета от сервера не будет автоматически обработан и останется в ожидании до ручной обработки или установки новой ловушки.

Pascal

procedure CancelWaitTarget;

Python

def CancelWaitTarget() -> None: ...

Pascal Example

begin
  WaitTargetObject(FindItem);
  UseObject(Backpack);
  Wait(1000);
  // Changed our mind — cancel the trap
  CancelWaitTarget;
end.

Python Example

WaitTargetObject(FindItem())
UseObject(Backpack())
Wait(1000)
# Changed our mind — cancel the trap
CancelWaitTarget()

See Also

WaitForTarget, WaitTargetObject