[help] play sound at a specific origin
Can anyone give me a heads up how to play a sound at a specific origin?
|
Re: [help] play sound at a specific origin
EngFunc_EmitAmbientSound ?
|
Re: [help] play sound at a specific origin
PHP Code:
Float:{XXX.X, XXX.XX, XXX.X} Position 0 the entity. 0 is worldspawn (all map) |
Re: [help] play sound at a specific origin
Thanks lads
|
Re: [help] play sound at a specific origin
Or you can just use emit_sound if you don't want to use Fakemeta.
|
Re: [help] play sound at a specific origin
I didn't know emit_sound() had an origin parameter.
|
Re: [help] play sound at a specific origin
You can create an ent, set it at that origin, emit the sound, and then delete it. I suppose in this case it would be better to use Fakemeta.
EDIT: Looking through FM stocks, there's also this: http://www.amxmodx.org/funcwiki.php?go=func&id=953 It would shorten the code a little bit. |
Re: [help] play sound at a specific origin
humm... shouldnt this work?
PHP Code:
|
Re: [help] play sound at a specific origin
I hope you realize that 1180.0 is 1180 seconds. That means you'll have to wait that long for it to play.
|
Re: [help] play sound at a specific origin
change 1180.0 to approximately the sound's length.
If, for example, the sound is 7 seconds, I would set the task every 8 ~ 15 seconds. |
| All times are GMT -4. The time now is 09:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.