![]() |
|
T-16's E2 Help & Request Thread - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: T-16's E2 Help & Request Thread (/thread-580.html) |
T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 10-11-2014 If you want help with a problem you're facing with E2 just place the code giving you the error in a comment and i'll reply with the fix or you can message me on the forum with it. Also i'm going to take some requests for E2's because its fun for me I can give it to just the one who requested it or i can release it on the forums, that is up to whoever requested it. I'm pretty much good at anything but i won't make anything that can be used to abuse. EDIT: im not going to release/make anything that is exactly the same as what i've already made i will recreate with a new design or layout. also im not going to do anything that includes applyForce() as with many players it'd lag the server RE: T-16's E2 Help & Request Thread - Lucid - 25-11-2014 Hello T-16, i have a request for you. Can you make a computer e2 like your e2? RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 25-11-2014 i'll uh make an example chip for the keyboard but i'll leave the EGP coding to you EDIT:forgot not everyone knows E2 will create a basic layout and commands before the 30/11/2014 RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 30-11-2014 Your requested E2 has been finished and i will give it to you the next time i'm on Current Functions: Tactical Info Resource Screen Ship Status RE: T-16's E2 Help & Request Thread - warhammer - 02-12-2014 hi T_16 with the shuttle 11 it has a transwarp when you put advaced wireing tool over it is it possible to make a e2 for that RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 02-12-2014 yeah it is,just give me a list of the locations you want to be able to warp to for it. EDIT:i'll just get a location for each galaxy, i'll give it to you in game when i finish it
RE: T-16's E2 Help & Request Thread - warhammer - 06-12-2014 could i have some help finishing this i got doors to open but they dont want to close @name door control @inputs @outputs DoorD1 DoorD2 DoorD3 DoorD4 DoorD5 DoorD6 DoorD7 DoorD8 DoorD9 DoorD10 @persist @trigger Owner = owner() OwnerName = owner():name() runOnChat(1) if(chatClk(Owner)){ hideChat(1) ID = lastSaid():index(1) Line = lastSaid() ub(2):lower():explode(" ")Command = Line[1,string] if(ID == "/"){ Var1 = Line[2,string] Var2 = Line[3,string] } if (Command=="door"){ if(Var1=="d1"){ if(DoorD1==0){DoorD1=1 print("DoorToggled") } } if(Var1=="d2"){ if(DoorD2==0){DoorD2=1 print("Door Toggled") } } if(Var1=="d3"){ if(DoorD3==0){DoorD3=1 print("Door Toggled") } } if(Var1=="d4"){ if(DoorD4==0){DoorD4=1 print("Door Toggled") } } if(Var1=="g1"){ if(DoorG1==0){DoorD5=1 print("Door Toggled") } } if(Var1=="g2"){ if(DoorG2==0){DoorD6=1 print("Door Toggled") } } if(Var1=="g3"){ if(DoorG3==0){DoorD7=1 print("Door Toggled") } } if(Var1=="g4"){ if(DoorG4==0){DoorD8=1 print("Door Toggled") } } if(Var1=="g5"){ if(DoorG5==0){DoorD9=1 print("Door Toggled") } } if(Var1=="g6"){ if(DoorG6==0){DoorD10=1 print("Door Toggled") } } } } else{ hideChat(0) } } RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 06-12-2014 Code: @name Door Controller
@ouputs T1 T2 T3 T4 T5 T6 T7 T8 T9 T10
@persist T1 T2 T3 T4 T5 T6 T7 T8 T9 T10
interval(200)
runOnChat(1)
if(first()|duped()){
T1 = 0
T2 = 0
T3 = 0
T4 = 0
T5 = 0
T6 = 0
T7 = 0
T8 = 0
T9 = 0
T10 = 0
}
if(chatClk(owner())){
Words = owner():lastSaid():explode(" ")
Var1 = Words[1,string]
Var2 = Words[2,string]
Var3 = Words[3,string]
if(Var1=="/door"){
hideChat(1)
print("Door "+Var2+" toggled")
if(Var2=="1"){
T1 = !T1
}
if(Var2=="2"){
T2 = !T2
}
if(Var2=="3"){
T3 = !T3
}
if(Var2=="4"){
T4 = !T4
}
if(Var2=="5"){
T5 = !T5
}
if(Var2=="6"){
T6 = !T6
}
if(Var2=="7"){
T7 = !T7
}
if(Var2=="8"){
T8 = !T8
}
if(Var2=="9"){
T9 = !T9
}
if(Var2=="10"){
T10 = !T10
}
}
}simply wire T# to the door you want to control and use /door # to toggle it, T-16 EDIT:just added interval() should fix it, let me know if it doesn't RE: T-16's E2 Help & Request Thread - warhammer - 06-12-2014 thanks it dont open now as well RE: T-16's E2 Help & Request Thread - TheOneAndOnlyTee - 07-12-2014 The Transwarp Controller, coded to be just like pho's warp but for shuttle only. The locations are from pho's E2 so credit him for that but if there is an issue with warping into another players ship let me know and i'll get some new ones. To use it just slap it onto the shuttle and done ![]() Code: @name Shutttle Transwarp Controller by T-16
@persist Loc:array
runOnChat(1)
Shuttle = entity():isConstrainedTo():wirelink()
Command = owner():lastSaid()
SubCommand = owner():lastSaid():sub(7)
if(chatClk(owner())){
if(Command=="/helpw"){
print("type '/warp location' to warp")
print("Locations:milk, pegasus, universe, build, earth, moon, shak, station, hiigara, desert, lava")
if(Command:left(5) =="/warp"){
if(SubCommand =="milk"){
print("Transwarp Activated,Destination is Milky Way")
Shuttle["TransWarp Dest",vector] = Loc[1,vector]
timer("warp",100)
}
elseif(SubCommand =="pegasus"){
print("Transwarp Activated,Destination is Pegasus")
Shuttle["TransWarp Dest",vector] = Loc[2,vector]
timer("warp",100)
}
elseif(SubCommand =="universe"){
print("Transwarp Activated,Destination is Universe")
Shuttle["TransWarp Dest",vector] = Loc[3,vector]
timer("warp",100)
}
elseif(SubCommand =="build"){
print("Transwarp Activated,Destination is Build Room")
Shuttle["TransWarp Dest",vector] = Loc[4,vector]
timer("warp",100)
}
elseif(SubCommand =="earth"){
print("Transwarp Activated,Destination is Earth")
Shuttle["TransWarp Dest",vector] = Loc[5,vector]
timer("warp",100)
}
elseif(SubCommand =="moon"){
print("Transwarp Activated,Destination is Moon")
Shuttle["TransWarp Dest",vector] = Loc[6,vector]
timer("warp",100)
}
elseif(SubCommand =="shak"){
print("Transwarp Activated,Destination is Shakurus")
Shuttle["TransWarp Dest",vector] = Loc[7,vector]
timer("warp",100)
}
elseif(SubCommand =="station"){
print("Transwarp Activated,Destination is Space Station")
Shuttle["TransWarp Dest",vector] = Loc[8,vector]
timer("warp",100)
}
elseif(SubCommand =="hiigara"){
print("Transwarp Activated,Destination is Hiigara")
Shuttle["TransWarp Dest",vector] = Loc[9,vector]
timer("warp",100)
}
elseif(SubCommand =="desert"){
print("Transwarp Activated,Destination is Desert")
Shuttle["TransWarp Dest",vector] = Loc[11,vector]
timer("warp",100)
}
elseif(SubCommand =="lava"){
print("Transwarp Activated,Destination is Lava")
Shuttle["TransWarp Dest",vector] = Loc[12,vector]
timer("warp",100)
}
}
}
if(clk("warp")){
Shuttle["Transwarp",number] = 1
timer("clear",400)
}
if(clk("clear")){
Shuttle["TransWarp Dest",vector] = vec()
Shuttle["Transwarp",number] = 0
}
#pho's locations
Loc[1,vector] = vec( 254.50, 13973.18, 8605.99 )
Loc[2,vector] = vec( 5228.53, -6834.12, 8748.00 )
Loc[3,vector] = vec( -8486.32, -10804.29, 7714.54 )
Loc[4,vector] = vec( 11818.81, 14000.95, -15135.41 )
Loc[5,vector] = vec( 254.50, 13973.18, 8605.99 )
Loc[6,vector] = vec( -4388.20, 13907.04, 10565.49 )
Loc[7,vector] = vec( -8489.67, -8210.08, 8506.47 )
Loc[8,vector] = vec( 5340.02, -7323.07, 8796.96 )
Loc[9,vector] = vec( 8213.68, 8034.12, -4160.70 )
Loc[10,vector] = vec( 4017.29, -5659.47, -2275.39 )
Loc[11,vector] = vec( -9626.34, 79.15, -2710.71 ) |