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 и т. д.).
После отмены следующий курсор таргета от сервера не будет автоматически обработан и останется в ожидании до ручной обработки или установки новой ловушки.
procedure CancelWaitTarget;
def CancelWaitTarget() -> None: ...
begin
WaitTargetObject(FindItem);
UseObject(Backpack);
Wait(1000);
// Changed our mind — cancel the trap
CancelWaitTarget;
end.
WaitTargetObject(FindItem())
UseObject(Backpack())
Wait(1000)
# Changed our mind — cancel the trap
CancelWaitTarget()