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

How to create a program that controls ICBM launchers

Started by Larry_Bob, 14 January 2013 - 12:50 AM
Larry_Bob #1
Posted 14 January 2013 - 01:50 AM
Don't need anything too fancy, just want to know how to a) set coordinates and B)/> fire missiles from a computer.

Ideally it would have an extremely simple UI (eg. Please type in coordinates for the launcher)
theoriginalbit #2
Posted 14 January 2013 - 02:05 AM
I believe that ICMB is redstone based… so look at the redstone API from the Wiki… as for setting the coordinates in it… I don't think you can, unless they have added it as a peripheral…
Orwell #3
Posted 14 January 2013 - 02:15 AM
You can wrap the launcher panel as a peripheral. The api is documented in the ICBM documentation, google should bring you there. :)/> (I'm on the phone)

If I remember right, it is like this:

local icbm = peripheral.wrap('side')
icbm.setTarget(x,height,z)
icbm.launch()

Be sure to look it up anyway!