Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = require("component")
- local g = c.getPrimary("stargate")
- repeat
- if g.irisState() == "Open" then
- else
- repeat
- state, engaged, direction = g.stargateState()
- print("Waiting")
- until direction == "Incoming"
- repeat
- g.openIris()
- --state, engaged, direction = g.stargateState()
- iris = g.irisState()
- print("Opening")
- until iris == "Open" or iris == "Opening"
- print("Opened")
- end
- until false
Add Comment
Please, Sign In to add comment