Raised This Month: $ Target: $400
 0% 

EmitSound to player also hearable for players in a close radius?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
intercostal_noisE
Member
Join Date: May 2014
Old 03-31-2015 , 10:46   EmitSound to player also hearable for players in a close radius?
Reply With Quote #1

Hi,

i have a client id of a player ...

- i try to play a sound to this player (standard volume)
- and also to players close to him (with a litle lower volume) + (recogniseable from the players origin)

do i manually have to determine which players are close,
and play the sound to all close enouth players while giving the source origin to the EmitSound function?

or is there an Emit-Function that play's the sound to all close players?

how to use it? ...

thanks

Last edited by intercostal_noisE; 03-31-2015 at 15:22.
intercostal_noisE is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-31-2015 , 11:15   Re: EmitSound to player also hearable for players in a close radius?
Reply With Quote #2

EmitSoundToAll("soundfile.wav", iEntityToOriginateFrom);
__________________
Chdata is offline
intercostal_noisE
Member
Join Date: May 2014
Old 03-31-2015 , 18:13   Re: EmitSound to player also hearable for players in a close radius?
Reply With Quote #3

Thanks!

Works well!
intercostal_noisE is offline
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 05:22.


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