GetQuantity

Returns stack size for object ObjID

Pascal Syntax:

function GetQuantity(ObjID : Cardinal) : Integer;

Pascal Example:

  if (FindType(CraftItemReagentType, Backpack) = 0) or (GetQuantity(FindItem) < RegsAmountForCraft) then
    begin
      Ignore(FindItem);
      GetRegsFromChest(CraftItemReagentType, RegsAmountForCraft);
    end;

Python Syntax:

def GetQuantity(ObjID): --> int