Advertisement
PaganNova

Untitled

Jan 17th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local component = require ("component")
  2. local iCon = component.get("54c7fdac-a57c-4040-9348-4a3be4f608dd")
  3. local methodTable = component.methods(iCon)
  4. local sideOfBufferChest = nil
  5.  
  6. for k,v in pairs(methodTable)
  7. do print(tostring(k) .. " = " .. tostring(v))
  8. end
  9.  
  10. for k in pairs(methodTable)
  11. do print(tostring(k) .. " - " .. component.doc(iCon, k))
  12. end
  13.  
  14. for i=0, 6, 1
  15. do
  16.  
  17. if(iCon~=nil) then print ('Found Inventory Controller')
  18. if(iCon.getInventorySize(i)~=nil)
  19. then sideOfBufferChest = iCon.GetInventorySize(i)
  20. print(iCon.getInventorySize(i))
  21. end
  22. else print ("Inventory Controller is missing/unavailable") end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement