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

GetHP

Returns property HP (life) for mobile with ID ObjID

Pascal Syntax:

function GetHP(ObjID : Cardinal) : Integer;

Pascal Example:

while GetHP(Self) < 50 do
begin
  WaitTargetSelf;
  UseObject(bandage_type);
end;

Python Syntax:

def GetHP(ObjID): --> int