Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Help and Support v
« Previous 1 2 3 4 5 6 … 21 Next »
e2 code to display wormhole direction
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
e2 code to display wormhole direction
09-05-2020, 12:46 PM, (This post was last modified: 09-05-2020, 01:06 PM by The17thDoctor. Edited 2 times in total.)
#3
The17thDoctor Online
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: e2 code to display wormhole direction
What kind of screen would it be ? An EGP / SF Screen or a Text Screen ?

Here you go :
--@name Stargate Status
--@author Doc for Jesus <3
--@class processor

wire.createInputs({"Active","Inbound"},{"Normal","Normal"})
wire.createOutputs({"Status"},{"String"})

wire.ports.Status = "Not Wired"

hook("input","Stargate Check",function(name,value)
if name == "Active" then
if value == 1 then
wire.ports.Status = "Outbound"
else
wire.ports.Status = "Inactive"
end
elseif name == "Inbound" then
if value == 1 then
wire.ports.Status = "Inbound"
end
end
end)

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
e2 code to display wormhole direction - by Funlax - 09-05-2020, 08:49 AM
RE: e2 code to display wormhole direction - by Ethan Vondwarf - 09-05-2020, 09:41 AM
RE: e2 code to display wormhole direction - by The17thDoctor - 09-05-2020, 12:46 PM
RE: e2 code to display wormhole direction - by Knight - 09-05-2020, 01:09 PM
RE: e2 code to display wormhole direction - by The17thDoctor - 09-05-2020, 02:29 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.