Emitting Sounds From Player
How can I emitt a sound from a specific player. And while the sound is emitting, I want it to follow the player.
Meaning I don't want it to just emit from where he was standing when the sound started, I want it to be attached to him somewhat, so that while he's moving, it gives the effect that he's making the sound. |
Re: Emitting Sounds From Player
emit_sound(id, CHAN_AUTO, "xxx/xxx.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
http://www.amxmodx.org/funcwiki.php?...ound&go=search |
Re: Emitting Sounds From Player
Quote:
Edit: Wait, that will only emitt the sound to that one person. I want everyone to be able to hear it, but have the sound emit from that one player. They would have to be near him of course. |
Re: Emitting Sounds From Player
I guess you could see if two people are close enough to each other to hear the sound, with get_distance? and then get their origins with get_user_origin.
Never used emit_sound, so idk. |
Re: Emitting Sounds From Player
Quote:
|
Re: Emitting Sounds From Player
Quote:
|
Re: Emitting Sounds From Player
Quote:
|
Re: Emitting Sounds From Player
Oh, sorry. I have a trouble with editing of my post
|
Re: Emitting Sounds From Player
Check the multiple plugins that already do this.
|
| All times are GMT -4. The time now is 11:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.