hello, i am trying to make a dear sister swep, but when the song is playing, the user will be able to shoot, however when the gunshot sound plays it ends the song.
i am using
[CODE]SWEP.Secondary.Sound = "weapons/dearsister.wav"
self.Weapon:EmitSound( self.Secondary.Sound )[/CODE]
to play the song and
[CODE]SWEP.Primary.Sound = Sound( "Weapon_SMG1.Single" )
self.Weapon:EmitSound( self.Primary.Sound )
[/CODE]
to play the gunshots, i don't know what i should use to have them overlap them
thanks
Make sure you add the sound and set it to use a specific channel, exactly how Weapon_SMG1.Single was defined.
Weapon_SMG1.Single is a scripted sound on CHAN_WEAPON. Also, IIRC any emitsounds from a weapon are automatically on CHAN_WEAPON as well. What he'll have to do is either use Global EmitSound() or use sound.Add on weapons/dearsister.wav to define a sound that uses another channel like CHAN_ITEM or something.
holy fuck it worked without breaking for the first time i tried to fix a lua script, without breaking it once.
thanks acecool and bfg9000 you guys are great
Sorry, you need to Log In to post a reply to this thread.