Advertisement
Batword

Test affichage de capacité

Aug 5th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. os.loadAPI("ocs/apis/sensor")
  2.  
  3. tank = sensor.wrap("top")
  4.  
  5. tankDetails = tank.getTargetDetails("-2,1,-1")
  6. tankCapacity = tankDetails["Capacity"]
  7. print(tankCapacity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement