Ya, I am really noob, but how do I make a SWEP that spawns entities?
Like shoot them away from the player? Or spawn them at the cursor? Or above the player?
Tell more, if you only want to shoot props, it should bee easy to find at garrysmod.org
Also, Since your new it seem’s,
is your best friend. Use the search part.
I don’t think you understand lua.
If you just want to spawn them where you’re looking, use a trace (http://wiki.garrysmod.com/?title=Util.TraceLine), and make sure you set angles (http://wiki.garrysmod.com/?title=Entity.SetAngles) to the HitNormal. If you want to shoot them, spawn them in front of you, then apply a force in the direction the player is looking (http://wiki.garrysmod.com/?title=Player.GetAimVector).
Also, I may be wrong about needing to do the trace. I don’t do SWEPs, look in the SWEP library for more help (http://wiki.garrysmod.com/?title=Weapon_Hooks) or (http://wiki.garrysmod.com/?title=SWEP).
If that’s out of your league, look around for some other SWEP that acts something like yours, and take a look at the code in it for some help.
Judging from the fact that you said you’re a noob, http://wiki.garrysmod.com/?title=Lua_Tutorial_Series is probably best.
I’m not the best at it, you don’t have to be an asshole. I was trying to be helpful…
I’m not being an asshole, you just don’t understand lua. It’s not an insult. It’s like saying you don’t understand chinese.