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 … 21 Next »
Broken E2 Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Broken E2 Code
19-11-2020, 03:31 AM,
#1
Funlax Offline
TSCM Donator
***
Posts: 48
Threads: 24
Joined: Sep 2019
Broken E2 Code
i have found some code i wish to use but it seems broken. can anyone make it work again? any help is appreciated.

If you wish to find it in-game, it can be found under the 'cap-shared' folder in the e2 editor.


@name Dial Closest Stargate
@inputs SG:wirelink Button AllowBlocked
@outputs True
@persist AddressList:table

True=1

if (Button & ~Button) {
AddressList = SGConfusedtargateAddressList()
Min = -1
for(I=0,AddressList:count()-1) {
V = AddressList[I,array]
Address = V[1,string] # Get address
Blocked = V[3,number] # Get blocked
Distance = SGConfusedtargateGetDistanceFromAddress(Address)
if (Min > Distance || Min<0) {
if (Blocked==0 || AllowBlocked==1) {
Min = Distance
BestGate = Address
}
}
}
SGConfusedtargateDial(BestGate, 1)
}

[Image: 0275f90af1a353220a7ae2a26ed3de997b4efd5d...270_hq.gif]
Find
Reply
« Next Oldest | Next Newest »


  • 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.