General > Developers Corner

Help with superadmin death sound.

<< < (2/2)

JamminR:
Reasonably sure Sound() and sound.Play default to the ./sound/ folder, yet, you have the folder specified in the variable.
I'm surprised you're not seeing a 'unable to precache file fail.wav' at client connect on the client side.
My theory, you're trying to play gmod/sound/sound/fail.wav when it should be gmod/sound/fail.wav
Try Sound( "fail.wav" ) instead of Sound( "sound/fail.wav" )

jacob428:

--- Quote from: JamminR on December 17, 2013, 04:44:04 PM ---Reasonably sure Sound() and sound.Play default to the ./sound/ folder, yet, you have the folder specified in the variable.
I'm surprised you're not seeing a 'unable to precache file fail.wav' at client connect on the client side.
My theory, you're trying to play gmod/sound/sound/fail.wav when it should be gmod/sound/fail.wav
Try Sound( "fail.wav" ) instead of Sound( "sound/fail.wav" )

--- End quote ---

My friend, you've hit the nail on the head. Just changed sound/fail.wav to fail.wav and it works perfectly. Thank you so much!

JamminR:
Welcome. Glad our community could be of assistance.

Navigation

[0] Message Index

[*] Previous page

Go to full version