Incoming connection signal/alert via Basic Interface? #55
-
Long story short, i am wanting to get an incoming connection "alert" in my CC program... but i can't tell what value to look for.... Building an ATM9 server for the kiddo (to learn some programming via CC) and would like it if in my base i could get an alert if my Stargate (i took over Lantea) is activated via incoming connection.... I have attempted to use 2 interfaces, and essentially wrote the code that IF activity on interface 2 AND i did NOT start a dial, alarm... but nothing.... Any ideas would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It would probably be good to use ComputerCraft events for that: 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:
|
Beta Was this translation helpful? Give feedback.
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: