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

WaitTargetLast

Pre-sets a target hook that will automatically target the last targeted object.

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 with the most recently targeted object.

Does nothing if the character is not connected.

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

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

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

Pascal

procedure WaitTargetLast;

Python

def WaitTargetLast() -> None: ...

Pascal Example

begin
  WaitTargetLast;
  Cast(spHeal);
  Wait(2000);
end.

Python Example

WaitTargetLast()
Cast(Spell.Heal)
Wait(2000)

See Also

WaitTargetObject, WaitTargetSelf