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.
Предустанавливает ловушку таргета, которая автоматически нацелится на последний объект, на который выполнялось нацеливание.
Если курсор цели уже активен в момент вызова, ловушка срабатывает немедленно. Иначе ловушка ожидает следующий входящий курсор цели и автоматически нацеливается на объект, бывший целью в последний раз.
Не выполняет действий, если персонаж не подключён.
procedure WaitTargetLast;
def WaitTargetLast() -> None: ...
begin
WaitTargetLast;
Cast(spHeal);
Wait(2000);
end.
WaitTargetLast()
Cast(Spell.Heal)
Wait(2000)