Garry's Mod

Garry's Mod

Expression2 Turret Exstension (E2:shootTo()) [Wiremod needed]
26 Comments
Minos Prime 19 Jan, 2022 @ 3:19pm 
how to make it so other players can use the function?
Sanders 19 Sep, 2018 @ 7:00pm 
hey could you possible make an extention to shoot are alfire shots?
ritardo milos 1 Mar, 2018 @ 10:39am 
Nice stuff, but spread is static.
Sanders 20 Dec, 2017 @ 1:05am 
could you make an e2 function that allows us to make lasers? or to shoot the ar2 al fire from an e2?
Sanders 27 Jun, 2017 @ 4:42pm 
you should add one thing: add a muzzle flash so we can make it look far better (needs to be parentable aswell as being rotated
Sanders 23 Jun, 2017 @ 10:17am 
NVM got it done XD
Sanders 23 Jun, 2017 @ 9:48am 
yea i tried doing this as you said it was straight forward also keep in mind i have had no sleep for the last 2 days so here is my attempt: entity(E):shootTo(up, 0.05, 500, 99, 60, Tracer) does nothing
Mr Mage 20 Jun, 2016 @ 9:49pm 
you get a big fat 11/10, although it took me a bit to find out how to bind the keys, I can finally make an OP armed HOLO helicopter, now I just need to find out how to save it, but that's not your problem the next thing we need for this mod is missiles and rockets!!! :steamhappy:
Dandry 24 Aug, 2015 @ 4:28am 
can you gives a example of a code you made with e2 because i have no Fu*king idea how to do this
{SD} killer124n 30 Mar, 2015 @ 8:17am 
How you make it where all players can use it?
propslinger 26 Mar, 2015 @ 3:47pm 
how do i attach the turret to the e2?
Astatine85 10 Mar, 2015 @ 5:06am 
Good job now single E2 for my eye turrets
dgrawns 23 Jan, 2015 @ 1:52pm 
@Blank.exe dont confuse e2 with lua, e2 is made from lua, not lua, also look it up instead of raging on comments k?
guatemala warrior 29 Dec, 2014 @ 6:28pm 
entity:shootTo(I HAVE NO FUCKIN CLUE HOW TO DO LUA YOU SHITHEADS DONT THROW THIS SHIT AT ME. I WILL FUCK YOU UP. ILL SHOVE MY FIST DOWN YOUR THROAT AND MAKE YOU SHIT BLOOD FOR THE NEXT 15 YEARS! BITCH)
thats my lua code
RDC 4 Dec, 2014 @ 9:00pm 
get this as an error when I try to fire it
sv: Expression 2 (generic): entities/gmod_wire_expression2/core/custom/shootto.lua:17: attempt to index local 'this' (a nil value)

My line of code:

E:shootTo(E:forward(),0,50,150,1,2)
RDC 4 Dec, 2014 @ 8:01pm 
find() also should be modified by using findincludeclass("Player") so it targets players, if you findinclude npc's it should also work, I forget how that is typed
RDC 4 Dec, 2014 @ 8:00pm 
darth, use find() to find people, use findexcludeplayer("PLAYERNAME which can be shortened like Reddeadlycreeper to red")
Sanders 2 Apr, 2014 @ 1:16am 
how to change the tracer?
Sanders 5 Mar, 2014 @ 7:52pm 
ok so i have an e2 that i want to only track npc/otherplayers(excludeing owner) how would i go on about doing so?
Sanders 11 Feb, 2014 @ 2:51am 
so i can use like a cylinder from sprops? lol
Moonlight.PWG  [author] 12 Nov, 2013 @ 3:05pm 
entity:shootTo(Direction, Spread, Force, Damage, Bullets per shot, Tracer index)

It's pretty straight forward guys, all the values are numbers, the entity that is shooting can be any prop you want on the map (that you own)
Sanders 19 Oct, 2013 @ 6:31pm 
i cannot figure this shit out!
Blóðhundr 28 Sep, 2013 @ 10:32am 
could you make a tutorial for this please xD
러브라이브! 13 Aug, 2013 @ 2:38am 
good
Moonlight.PWG  [author] 11 Aug, 2013 @ 6:21pm 
Let me know of any bugs!