A tutorial on how to write an if statement in Expression 2 for Garry's Mod.
===Website===
www.GmodTech.net
===Servers===
91.192.210.167:27018 - gm_flatgrass
91.192.210.195:27015 - gm_botmap_v2
===E2 Code===
@name Expression Tutorial
@inputs Button1 Button2
@outputs Hydraulic
if(Button1 + Button2 == 1){Hydraulic = 100}
elseif(Button1 + Button2 != 1){Hydraulic = 0}
hi snaggle,its me Mu.anifz :D
TheRandomZy 2 weeks ago
Thanks for uploading ^^
luxor1997 1 month ago
ok im looking to make a e2 that if mouse 1 is pressed x times then it will play a sound how would i do that?
Si3z3 1 year ago
never heard of | ? o else ? example if(Button1 |Button2){Hydraulic = 100}else{Hydraulic = 0}
done. is that easy ?
MrWireTuts 1 year ago
NICe
Freddy140496 1 year ago