MoJoCreatior

Untitled

Jan 10th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1.   if deviceRFcapL[1] ~= nil then
  2.     for _,address in ipairs(deviceRFcapL) do
  3.       devices[#devices+1]["uuid"] = component.proxy(address)
  4.       devices[#devices]["name"] = "LV Capacitor"
  5.       devices[#devices]["maxE"] = devices[#devices]["uuid"].getMaxEnergyStored()
  6.       devices[#devices]["curE"] = devices[#devices]["uuid"].getEnergyStored()
  7.       devices[#devices]["change"] = (devices[#devices]["uuid"].getEnergyStored() - devices[#devices]["curE"])
  8.      
  9.      
  10.       --table.insert(devices, component.proxy(address))
  11.       --table.insert(devices, "LV Capacitor")
  12.     end
  13.   end
Advertisement
Add Comment
Please, Sign In to add comment