Well the only issues I had while implementing your code were:
1. Icbm Peripheral only provides these methods (getTarget) (setTarget) (fire) (getFrequency) (getMissile).
--have to use ie peripheral.call("back", "getTarget")
2. Armed Status is a custom toggle I put in, so that as a precaution I can disarm the computer controlling the silo (slave).
3. Implementing the armed status toggle in the client, so that it can change local armStatus to local armStatus = (newState).
Thanks for the help, it gave me an idea but im still working on it.
My basic general idea was to make it so that
After logging in to the masterPC, it would print like a log, for all that are in range:
print("Welcome "..username)
print("===============================")
[Silo#] [Pc ID] [Missile Type] [Arm Status]
[Silo#1] [Pc ID] [Nuclear] [Armed]
[Silo#2] [Pc ID] [Nuclear] [Armed]
[Silo#3] [Pc ID] [Nuclear] [Disarmed]
print("==========================")
print(" [Options] ")
1. Arm Silos.
2. Disarm Silos.
3. Arm Selected Silo.
4. Disarm Selected Silo.
5. Set Target For Selected Silo.
6. Set Target For All Silos.
7. Fire Selected Silo.
8. Fire All Silos.
*Basic code*
*The Entire Idea*
I just want to know how i can get it to do these critical functions:
1. Log the missiles in the format I want without being in a locked loop that i cannot type an option in.
--For example, in my code it detects as many slaves in range, and then lets me fire them if i want to.
2. Be able to arm the missile or disarm it.
3. Be able to set the missiles targets.
4. Fire the missile or missiles.
I basically just need to print the data, but the additonal part of setting arm status and setting coordinates without firing is helpful.
(I play on a server and I dont want to be blown up, I like to code things that help people survive)
(At the same time i dont trust people in my faction either).
Pack:
http://www.technicpa...ion.689897/help
ServerIP : Already in the multiplayer tab once you load it up.
Would be appreciated if someone took the time to come down and show me a few pointers with rednet slave/masters.
Edited by Andrew2060, 22 July 2016 - 02:40 PM.