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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 13 14 15 16 17 18 Next »
stargate.setName
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
stargate.setName
12-06-2015, 02:24 PM,
#4
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: stargate.setName

local Owner = ents.owner()
function Owner1( Ent )
return Ent:owner() == Owner
end

SA = find.byClass("stargate_sg1", Owner1)
SA1 = SA[1]:getWirelink()



Shield = find.byClass("st_shield_emitter", Owner1)
Shield1 = Shield[3]:getWirelink()

Node = find.byClass("stargazer_node", Owner1)
Node1 = Node[4]:getWirelink()

STARGATEA = find.byClass("stargate_movie", Owner1)
STARGATEA1 = STARGATEA[5]:getWirelink()

LS = find.byClass("stargazer_ls_core", Owner1)
LS1 = LS[6]:getWirelink()
--stargazer_ls_core
function sendToClient()--Send stuff to client/Yes i know strings are slow but for learning its the easiest, You can also send tables
net.start()
net.writeString(String)
net.broadcast()
end
timer.create("Timer1",2,1,sendToClient)--Send our String to the CLIENT after 1 second and do this just 1 time

if IsValid(SA[1]) then--Check if the gate is there
stargate.setName(SA[1],"MIDWAY MilkyWay")--If yes set the name of the first gate in the table to "Test"
IRISSG1 = stargate.iris(SA[1])
stargate.irisToggle(IRISSG1)
end
if IsValid(STARGATEA[5]) then
stargate.setName(STARGATEA[5],"MIDWAY PEGASUS")
end
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
stargate.setName - by 4N0NYM - 12-06-2015, 12:45 PM
RE: stargate.setName - by Destiny's Player - 12-06-2015, 12:51 PM
RE: sv: SF:Starfall/MIDWAYCONTROLPANAL.txt:15: attempt to call method 'getWirelink' (a ni - by SuperPlayer - 12-06-2015, 12:59 PM
RE: stargate.setName - by 4N0NYM - 12-06-2015, 02:24 PM
RE: stargate.setName - by SuperPlayer - 12-06-2015, 02:28 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.