Issue Tracker
Donations
Search
Member List
Help
Register
Username:
Password:
Remember me
Team Spartan Cookies & Milk Forums
Garry's Mod
Help and Support
« 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
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 = SG
targateAddressList()
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 = SG
targateGetDistanceFromAddress(Address)
if (Min > Distance || Min<0) {
if (Blocked==0 || AllowBlocked==1) {
Min = Distance
BestGate = Address
}
}
}
SG
targateDial(BestGate, 1)
}
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News and Announcements
-- General Discussion
-- Donations
Applications
-- Join TSCM
Feedback
-- Report a player
-- Suggestions and improvements
Garry's Mod
-- Server Information
-- Help and Support
-- General
-- Projects
-- Starfall
-- Expression 2
Community Projects
-- Garry's Mod - Cyberpunk RP
-- Minecraft
-- Space Engineers
Users browsing this thread: 1 Guest(s)
Contact Us
Team Spartan Cookies & Milk
Return to Top
Lite (Archive) Mode
Mark all forums read
RSS Syndication
Powered By
MyBB
, © 2002-2026
MyBB Group
.