Whiskee icon

income.lua

Whiskee | PRO | 04/12/17 07:58:28 PM UTC | 0 ⭐ | 251 👁️ | Never ⏰ | []
Lua |

420 B

|

None

|

0 👍

/

0 👎

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

Comments