Basic SWEP questions

I’m making a swep, and i need to know what the command (like “SWEP.Primary.sound”) is for:

1: The secondary sound

2: the swep holdtype for melee (is it melee or crowbar or what)

…that’s it…

and, how do i set it for “hands by my side”, and if i did that with the world model as a stunstick, would people online see me hold the stunstick at me side? That’s what I really need…

function SWEP:PrimaryAttack()
self.Weapon:EmitSound("…")
end
function SWEP:SecondaryAttack()
self.Weapon:EmitSound("…")
end
–Notice the change?

for number 2:

function SWEP:Initialize( )
if SERVER then
self:SetWeaponHoldType( “melee” )
end
end

Next time, can I suggest looking at a swep that already exists :stuck_out_tongue_winking_eye:
It’s useful.

[editline]12:47AM[/editline]

For the other thing, I dont know, I recommend looking at existing sweps.

I dont think you can add a weapon, AND hold the arms to the side o-o

But, I may be wrong.

Read the bottom of his post. Take a look at this swep. http://www.garrysmod.org/downloads/?a=view&id=38625

Oh, thats cool o_o

Hehe, told yah I could’ve been wrong 8D

[editline]06:28AM[/editline]

Hm, thats what I was answering, <-<

Maybe you misstook me, but I ment that I dont think they would see the STUNSTICK 8D

I know you can hold your arms to the side… <-<