Mehr als 8 Waren spawnen
function addSupplies(X, Y, goodtype, amount)
local i = 0
while i < amount do
if (amount-i) < 8 then
Goods.AddPileEx(X, Y, goodtype, (amount-i))
i = i + amount
else
Goods.AddPileEx(X, Y, goodtype, 8)
i = i + 8
end
end
endLast updated