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

GetMaxStam

Returns the maximum stamina of the mobile with ObjID.

Возвращает максимальную выносливость (stamina) мобайла с ObjID.

Pascal

function GetMaxStam(ObjID: Cardinal): Integer;

Python

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

Pascal Example

begin
  if GetStam(Self) < GetMaxStam(Self) div 2 then
    AddToSystemJournal('Stamina below 50%');
end.

Python Example

if GetStam(Self()) < GetMaxStam(Self()) // 2:
    AddToSystemJournal('Stamina below 50%')

See Also

GetStam, GetHP