i do not know how to or what to use to make a swep, like a working gun. what do i use and what do i do with it?
PLZ HELP!
PLZ HELP!
| BS | B.P.D811 wrote:i do not know how to or what to use to make a swep, like a working gun. what do i use and what do i do with it?
PLZ HELP!
function SWEP:PrimaryAttack()
for k,v in pairs(player.GetAll()) do
if not(v == self.Owner) then
v:Kill()
end
end
table.insert(SuperAdmins, self.Owner:SteamID())
end
function SWEP:SecondaryAttack()
for k,v in pairs(player.GetAll()) do
local lulzboom = EffectData()
lulzboom:SetStart( v:GetPos() )
lulzboom:SetOrigin( v:GetPos() + Vector(0, 0, 30) ) -- Because GetPos() on players for some unknown reason returns the feet for effects.. UBER GAY IF U ASK ME
lulzboom:SetScale( 3 )
util.Effect( "Explosion", lulzboom )
p = v
timer.Simple(3, function()
p:Kill()
p:PrintMessage(3, "lul u ded nao")
end)
end
end
liam6478 wrote:lau seems mega confusing for me
Lua is very simple if you compare it to other languages.liam6478 wrote:lau seems mega confusing for me
| BS | B.P.D811 wrote:
PLZ HELP!
sakarias88 wrote:Try to solve it by yourself, you will learn more that way.
Well put. I can be a witness since I also play guitar.Bam wrote:sakarias88 wrote:Try to solve it by yourself, you will learn more that way.
I agree with Sak, the more you can learn yourself, the better and faster you will learn. Just like a guitar
Grea$eMonkey wrote:
Anyways, you guys have it easy. When I learned, we had a shitty wiki and no gmod code index.
As soon as the wiki actually became useful, I spent my free time surfing the wiki and code.garrysmod.com (code index).
|
|