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, 01:09 PM,
#4
Knight Offline
Valued donator and member
****
Posts: 397
Threads: 21
Joined: Nov 2013
RE: e2 code to display wormhole direction
(09-05-2020, 12:46 PM)The17thDoctor Wrote: 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)

You know they said E2 right?




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.