# Playing instrument only once

**URL:** <https://qa.fmod.com/t/playing-instrument-only-once/18464>\
**Category:** FMOD Studio\
**Created:** [March 4, 2022, 2:27pm UTC](https://qa.fmod.com/t/playing-instrument-only-once/18464 "2022-03-04T14:27:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swanphil](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@swanphil](https://qa.fmod.com/u/swanphil)\
**Post date:** [March 4, 2022, 2:27pm UTC](https://qa.fmod.com/t/playing-instrument-only-once/18464/1 "2022-03-04T14:27:44Z")

</div>

I’m working on a piece of coursework and am having a problem playing one part of a recurring event only once.

I have an event for when a player picks up/switches to a weapon and as part of the event, I want a VO line to trigger only the first time the player collects the weapon. The other event is a gun-cocking sound, which I want to play every time.

I have created a local parameter (“Triggered Y/N”), which is changed to “Y” by a command instrument when the event plays.

The VO line I want to play once is located in the parameter sheet for Triggered “N”.

So when the event is first played, it sets the parameter to Y and then logically the VO line shouldn’t play again when the event is triggered. However, this isn’t working! Any ideas why?

I’ve experimented with using trigger conditions rather than the parameter sheet, with no luck.

Thanks

---

<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:** [March 4, 2022, 6:21pm UTC](https://qa.fmod.com/t/playing-instrument-only-once/18464/2 "2022-03-04T18:21:21Z")

</div>

Probably because you’re triggering a new instance each time, which has its parameter values by default.

---

<div class="post-metadata">

**Author:** ![swanphil](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@swanphil](https://qa.fmod.com/u/swanphil)\
**Post date:** [March 5, 2022, 1:43pm UTC](https://qa.fmod.com/t/playing-instrument-only-once/18464/3 "2022-03-05T13:43:06Z")

</div>

Thanks. Is there a solution to this within FMOD? I’ve tried using parameter defaults and command instruments to set the parameter…

---

<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:** [March 5, 2022, 2:50pm UTC](https://qa.fmod.com/t/playing-instrument-only-once/18464/4 "2022-03-05T14:50:33Z")

</div>

No, there’s no communication between instances. You could eventually make your parameter global, but that would work only for one player/character.
