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

GetMaxHP

Returns the maximum HP (hit points) of the mobile with ObjID.

Возвращает максимальные HP мобайла с ObjID.

Pascal

function GetMaxHP(ObjID: Cardinal): Integer;

Python

def GetMaxHP(ObjID: int) -> int: ...

Pascal Example

begin
  if GetHP(Self) < GetMaxHP(Self) then
  begin
    WaitTargetSelf;
    UseObject(bandage_id);
  end;
end.

Python Example

if GetHP(Self()) < GetMaxHP(Self()):
    WaitTargetSelf()
    UseObject(bandage_id)

See Also

GetHP, Life, MaxLife