Sound won't play
I want to play a sound file (wav) for a client when he gains XP in a mod I'm working on... But the sound won't play (or atleast I can't hear it)...
Here's my hook_death code: PHP Code:
|
Re: Sound won't play
"sound/mymod/gainxp.wav"
No need to specify 'sound/' folder with *.wav sounds. Code:
|
Re: Sound won't play
Quote:
I'm thinking set_task(0.5, "play_gainxp_sound", Killer) or something? |
Re: Sound won't play
Try using CHAN_AUTO.
Also, be sure that the sound gainxp.wav exists in sound/mymod/ folder. |
Re: Sound won't play
Quote:
|
Re: Sound won't play
I have another question about this...
First of all, why can't I use CHAN_ITEM? It should work... The next thing is; if I want to play a sound from the Valve/sound directory it won't work either, why is that? I'm playing and coding for CZ btw... |
| All times are GMT -4. The time now is 01:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.