Garry's Mod

Garry's Mod

Not enough ratings
E2 Mini Turret
By Jarrods
Today we will be learning how to make a E2 Mini Turret using the movent of your eyes
   
Award
Favorite
Favorited
Unfavorite
How to use the turret
Right Click will fire the turret

Typing /on in chat will turn the turret on

Typing /off in chat will turn the turret off

Note this is my first E2 chip turret there will be bugs :(
Script
@name Mini_Turret
@outputs Fire
@model models/gibs/gunship_gibs_nosegun.mdl


runOnTick(1)

E = entity()

if(first()){
E:setMass(1000)
}
if (owner():lastSaid() == "/on"){
E:setPos(owner():shootPos()+vec(0,0,35))
E:setAng(owner():eyeAngles())
}

if (owner():lastSaid() == "/off"){

}
if (owner():keyAttack2()){
Fire = 1
}
else{
Fire = 0
}
Adding the turret
Now to add the turret part of its easy just get the turret tool and place the turret in the front of the barrel (Weld if needed) then go to wire tool and wire Turret Fire to the E2 chip fire
Thats all have fun
10 Comments
Umbral Whythsp 9 Mar, 2019 @ 1:20pm 
Do you know how to creat holo shields? i really need help and nobody seems to care.
yoknowhat 24 Feb, 2016 @ 11:42am 
Thx man i didn't know how to use :shootPos, but now can
SirCheeso 20 Sep, 2015 @ 1:56am 
WOOOO alive
Hallplay 4 Sep, 2015 @ 3:14pm 
oh okay
Jarrods  [author] 3 Sep, 2015 @ 12:00am 
This guide is outdated and I highly recommed finding an up to date one
Hallplay 2 Sep, 2015 @ 5:05pm 
mine wont shoot idk why i tried mouse 2 and 1
Replic8 11 Jul, 2015 @ 7:03pm 
working now
Replic8 11 Jul, 2015 @ 7:03pm 
fixed it
Jarrods  [author] 11 Jul, 2015 @ 4:22am 
If you use left and right click otherwise this is an old chip is it coduld be that
Replic8 11 Jul, 2015 @ 4:11am 
it wont fire