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 the mobile condition ( Death status) for mobile with ID ObjID

If disconnected, or object not exists, or object not a mobile - will return False.

Pascal

function IsDead(ObjID : Cardinal) : Boolean;

Python

def IsDead(ObjID) -> boolean

Example Pascal

if IsDead(ObjID) then
begin
  // Do something, like resurrect, report or something else
end;