Skip to content

Incoming connection signal/alert via Basic Interface? #55

Answered by Povstalec
JerichoJack asked this question in Q&A
Discussion options

You must be logged in to vote

It would probably be good to use ComputerCraft events for that:
https://github.com/Povstalec/StargateJourney/wiki/Interfaces#events

You can monitor whenever a chevron is engaged, an incoming/outgoing wormhole starts forming and when entities enter/exit the Stargate

You can use this as a base, it's code that listens to ComputerCraft events produced by the Stargate. I made it the first time I added the events, so some of the variables it outputs may be in different order or may be nil on the Basic Interface, but the general principle hasn't changed for any of the events:

interface = peripheral.find("advanced_crystal_interface")

local address = {}



function chevronMonitoring()
	  
    whi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JerichoJack
Comment options

@Povstalec
Comment options

Answer selected by JerichoJack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants