Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You may want to try storing the sound-playing function's returned value in a variable, then stopping the sound of that variable rather than the sound resource. It's possible that the issue you're having relates to stopping the sound resource rather than just the latest instance of it.
(By doing this, you will also allow multiple object instances to have their own "copy" of the sound playing, rather than having each instance stop each other's gunshot sound. This may also be an important change when using distance falloff and such with sounds from multiple object instances.)
audio_stop_sound(snd) snd = audio_play_sound(sound_gunsound,0,false)
I tried this, but it has no difference.
It works ! so, the solution was muting the sound, instead of stopping it. Thank you.