Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- storagesum = component.proxy(component.findComponent("Lager1"))
- local sum = 0
- local x = 0 -- Anzhal der Container auf 0
- for _,m in ipairs(storagesum) do
- x = x +1
- sum = sum + m:getInventories()[1].ItemCount
- end
- print(sum, x) -- Summe Items, Anzahl der Container
Add Comment
Please, Sign In to add comment