This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
NICTEC's profile picture

ICBM mod launcher as Peripheral

Started by NICTEC, 27 February 2016 - 06:22 PM
NICTEC #1
Posted 27 February 2016 - 07:22 PM
Hey There
First of all sorry for my bad English but Im Austrian.

When I run the following test code I get the Error Message: attempt to index ? (a nil value) an I don´t know why.


local IcbmSide = "right"
icbm = peripheral.wrap(IcbmSide)
icbm.launch()
HPWebcamAble #2
Posted 27 February 2016 - 10:19 PM
I assume the error has a '3' in there somewhere too. That's the line number.

You would get that error if there isn't actually a peripheral on the right.
NICTEC #3
Posted 28 February 2016 - 09:50 AM
Yes the error has a "3" in it.
HDeffo #4
Posted 29 February 2016 - 08:28 PM
ICBM's peripheral I believe is the terminal you normally launch missiles from. This is of course on the older version I don't think the newer version even had peripheral support since it switched authors. Which of the three parts are you trying to wrap with the computer?