IsDead
Returns True if the specified мобайл is dead, False otherwise.
ObjID — ID of the мобайл to check.
Returns False if the object does not exist or the character is disconnected.
To check the player’s own death state, use Dead.
Возвращает True, если указанный мобайл мёртв, иначе False.
ObjID — ID мобайла для проверки.
Возвращает False, если объект не существует или персонаж не подключён.
Для проверки состояния смерти собственного персонажа используйте Dead.
function IsDead(ObjID: Cardinal): Boolean;
def IsDead(ObjID: int) -> bool: ...
begin
if IsDead(LastAttack) then
AddToSystemJournal('Target is dead')
else
AddToSystemJournal('Target is alive');
end.
if IsDead(LastAttack()):
AddToSystemJournal('Target is dead')
else:
AddToSystemJournal('Target is alive')