Raised This Month: $ Target: $400
 0% 

Silly question I'm sure *sigh*


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mugwump
Senior Member
Join Date: May 2004
Old 06-29-2004 , 20:26   Silly question I'm sure *sigh*
Reply With Quote #1

With emit_sound(), how can I make a sound that only the user it is defined for can hear, or is that not possible?

Thanks,
Mugwump
Mugwump is offline
BAILOPAN
Join Date: Jan 2004
Old 06-29-2004 , 20:34  
Reply With Quote #2

Just do client_cmd("spk ^"%s^", sound) in that case
__________________
egg
BAILOPAN is offline
Mugwump
Senior Member
Join Date: May 2004
Old 06-29-2004 , 20:42  
Reply With Quote #3

Hmm, so this :

new sound[32] = {"buttons/button10.wav"}
client_cmd( id, "spk ^"%s^", sound )

would play that sound only to id , is that right?

Thank you,
Mugwump
Mugwump is offline
Bad HAL 9000
Senior Member
Join Date: Mar 2004
Location: Minnesota, USA
Old 06-29-2004 , 20:48  
Reply With Quote #4

yup, u can skip the {} tho
__________________
Bad HAL 9000 is offline
Send a message via ICQ to Bad HAL 9000 Send a message via AIM to Bad HAL 9000 Send a message via MSN to Bad HAL 9000 Send a message via Yahoo to Bad HAL 9000
Mugwump
Senior Member
Join Date: May 2004
Old 06-29-2004 , 21:00  
Reply With Quote #5

Great, thanks guys.

-Mugwump
Mugwump is offline
Mugwump
Senior Member
Join Date: May 2004
Old 06-29-2004 , 23:10  
Reply With Quote #6

I replaced the emit_sound with the code and it hasn't changed a thing, other players can still hear that button10.wav file being played...

Muwgump
Mugwump is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-30-2004 , 12:16  
Reply With Quote #7

Make sure id isn't 0
and you aren't executing it on every player in any another way
__________________
hello, i am pm
PM is offline
Mugwump
Senior Member
Join Date: May 2004
Old 06-30-2004 , 13:27  
Reply With Quote #8

Unfortunately I'm sure that id is not 0 and that its only being exectuted for the one id executing the command ...

Mugwump
Mugwump is offline
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 06-30-2004 , 15:00  
Reply With Quote #9

that makes no sense because a client command is only executed on a single client. can you paste the code you're using?

you might have it in some kind of loop that passes it to everyone.
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode