• How would I make my swep use custom sounds?
    1 replies, posted
Well, I have everything all set up, I have the sound file located both in the addon file and the base garrysmod file, but when I fire the gun, the only thing I hear is the bullets hitting whatever I'm aiming at. I'm terribly new, just starting this week, and I want to make a Borderland's style weapon. Nothing too complicated, just a SMG that shoots 2 bullets at set pace, ironsights and eventually a custom model, right now I can't get the sound working. [lua]SWEP.Primary.Sound = "sound/borderlands/weapons/smg1.wav" [/lua] Am I doing it right?
Try using [lua] SWEP.Primary.Sound = Sound("sound/borderlands/weapons/smg1.wav") [/lua] This should pre-cache the sound first for you, thus allowing it to work.
Sorry, you need to Log In to post a reply to this thread.