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

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.

Pascal

function IsDead(ObjID: Cardinal): Boolean;

Python

def IsDead(ObjID: int) -> bool: ...

Pascal Example

begin
  if IsDead(LastAttack) then
    AddToSystemJournal('Target is dead')
  else
    AddToSystemJournal('Target is alive');
end.

Python Example

if IsDead(LastAttack()):
    AddToSystemJournal('Target is dead')
else:
    AddToSystemJournal('Target is alive')

See Also

Dead, GetHP