Jump to content


VSXGsonic

Member Since 04 Oct 2014
Offline Last Active Mar 31 2020 03:16 PM
-----

Posts I've Made

In Topic: get rf capacity from cells in table nil

28 March 2020 - 06:11 PM

View PostLyqyd, on 28 March 2020 - 05:25 PM, said:

If you have a table of names, you can use peripheral.call:

for i, v in ipairs(cells) do
	energyC = energyC + peripheral.call(v, "getRFCapacity")
end

is there any advantage to .call ? I haven't used it before as I have always used .wrap