Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("monitor_1")
- local sg = peripheral.wrap("stargate_1")
- function iris()
- local state, engaged, direction = sg.stargateState()
- if state == "Idle" then
- elseif state == "Dialling" and direction == "Outgoing" then
- sg.closeIris()
- elseif state == "Dialling" and direction == "Incoming" then
- sg.closeIris()
- elseif state == "Connected" then
- sg.openIris()
- elseif state == "Closing" then
- sg.closeIris()
- end
- end
- while true do
- sleep(0.1)
- iris()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement