# Triggered event not coming back after having gone past its maximum distance

**URL:** <https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229>\
**Category:** FMOD Studio\
**Created:** [January 17, 2022, 8:38pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229 "2022-01-17T20:38:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![danitabaires](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/danitabaires/32/667_2.png) [@danitabaires](https://qa.fmod.com/u/danitabaires)\
**Post date:** [January 17, 2022, 8:38pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/1 "2022-01-17T20:38:31Z")

</div>

Let’s assume an event whose maximum distance is 4Km and it’s set via the spatializer override. The listener is fixed in the world, and the event is triggered within its range. You can hear the event as expected. The event then moves out of range (outside 4Km from the listener). You stop hearing the event as expected, but when the event moves back into range is not heard anymore. The only way to make it play again is to stop the instance and fire it again. Any ideas?

Using FMOD dll 2.2.3 and FMOD Studio 2.02.04.

---

<div class="post-metadata">

**Author:** ![danitabaires](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/danitabaires/32/667_2.png) [@danitabaires](https://qa.fmod.com/u/danitabaires)\
**Post date:** [January 17, 2022, 8:56pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/2 "2022-01-17T20:56:19Z")

</div>

I just removed the spatializer and the event is disappearing past 2Km all the same and it doesn’t come back until retriggered. I’m flabbergasted.

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 17, 2022, 9:12pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/3 "2022-01-17T21:12:48Z")

</div>

Isn’t it some stealing settings involved? (on the event, on a bus…)  
What you describe isn’t the normal behavior, and I’m not able to replicate the issue in the sandbox. Maybe it is a bug in the built game caused by the FMOD\_INIT\_VOL0\_BECOMES\_VIRTUAL flag? Maybe try without it and see if it changes anything…

> [@danitabaires](#):
>
> I just removed the spatializer and the event is disappearing past 2Km all the same and it doesn’t come back until retriggered. I’m flabbergasted.

I don’t understand how the event could disappear based on distance without a spatializer, and if there’s no stealing involved…

---

<div class="post-metadata">

**Author:** ![danitabaires](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/danitabaires/32/667_2.png) [@danitabaires](https://qa.fmod.com/u/danitabaires)\
**Post date:** [January 17, 2022, 10:22pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/4 "2022-01-17T22:22:02Z")

</div>

Yes, there’s no stealing involved, everything else is default. I have VOL\_0\_BECOMES\_VIRTUAL though, I’m going to try disabling it, but in case this fixes the issue, it would mean is a bug on the FMOD engine, right? Because virtual voices are supposed to keep playing.

I’m also surprised by the distance disappearing when there’s no spatializer involved, and the fact it’s only one event that exhibits the behavior. Others work fine.

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 17, 2022, 10:23pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/5 "2022-01-17T22:23:51Z")

</div>

> [@danitabaires](#):
>
> Because virtual voices are supposed to keep playing.

Yes, they are supposed to!..

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 18, 2022, 9:35am UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/6 "2022-01-18T09:35:31Z")

</div>

If the issue is induced by a kind of ressource management process, did you try to higher the event’s priority?

---

<div class="post-metadata">

**Author:** ![danitabaires](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/danitabaires/32/667_2.png) [@danitabaires](https://qa.fmod.com/u/danitabaires)\
**Post date:** [January 18, 2022, 1:07pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/7 "2022-01-18T13:07:08Z")

</div>

I tried disabling VOL\_0\_BECOMES\_VIRTUAL and changing the priority to Highest and noticed no change. The sound still disappears at 2Km and doesn’t come back unless retriggered.

---

<div class="post-metadata">

**Author:** ![danitabaires](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/danitabaires/32/667_2.png) [@danitabaires](https://qa.fmod.com/u/danitabaires)\
**Post date:** [January 18, 2022, 1:16pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/8 "2022-01-18T13:16:31Z")

</div>

SOLVED: Inside my event I had a nested event that triggered different samples according to the Distance parameter, which was capped at 2Km. Somehow FMOD wasn’t doing what it always does that it still keeps triggering the sample even when the parameter exceeds the limit, as if the sample didn’t reached the end of the scale, which it did. Changing the limit to 4Km and back to 2Km solved the problem.

---

<div class="post-metadata">

**Author:** ![danitabaires](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/danitabaires/32/667_2.png) [@danitabaires](https://qa.fmod.com/u/danitabaires)\
**Post date:** [January 18, 2022, 1:23pm UTC](https://qa.fmod.com/t/triggered-event-not-coming-back-after-having-gone-past-its-maximum-distance/18229/9 "2022-01-18T13:23:41Z")

</div>

When I look at the diff for the event, the cause is apparent: on the XML there is no record of the ending point of the sample, but only the start and length. A small insignificant digit on the far decimal places can make it not reach the end of the scale, thus stopping playback when the parameter reaches or exceeds that point.

 ![imagen](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/02c7c6593223546e43e577020a90146bb1e52c99.png)
