# Command instrument - set parameter bug?

**URL:** https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535
**Category:** FMOD Studio
**Created:** [December 9, 2020, 3:16pm UTC](https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535 "2020-12-09T15:16:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Koca](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Koca](https://qa.fmod.com/u/Koca)
#### Post date: [December 9, 2020, 3:16pm UTC](https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535/1 "2020-12-09T15:16:32Z")

</div>

Hello,  
I made some events to cover a bit more complex behaviour and found a problem which i can not solve.  
So, event is in play in loop on timeline sheet. Now and then the parameter forces the playhead to jump to some other timeline part to play some other sounds. At the end of instrument the Transition To logic returns it to default and start loop.  
Since i am controling this parameter from UE4 i wanted to reset it using command instrument but there is the problem.  
Validate project function finds that to be an error and fix it by deleting those command instruments. Why is that? What am i doing wrong? Or is it a bug?

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5cc321e431b4c0af3d5f29837efaaabc4a4ebe00.png)

Thank you

---

<div class="post-metadata">

### Author: ![Koca](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Koca](https://qa.fmod.com/u/Koca)
#### Post date: [December 9, 2020, 3:17pm UTC](https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535/2 "2020-12-09T15:17:47Z")

</div>

PS : I tried both SetParameter and DecrementParameter functions and same results.

---

<div class="post-metadata">

### Author: ![burnum](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@burnum](https://qa.fmod.com/u/burnum)
#### Post date: [December 9, 2020, 11:25pm UTC](https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535/3 "2020-12-09T23:25:57Z")

</div>

I also noticed Command Instruments were being deleted by the Validate function. Joseph from the FMOD QA team [said this was a bug](https://qa.fmod.com/t/command-instrument-in-scatterer-instrument/16314/3) and they added it to their bug tracker.

---

<div class="post-metadata">

### Author: ![Koca](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Koca](https://qa.fmod.com/u/Koca)
#### Post date: [December 10, 2020, 9:55am UTC](https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535/4 "2020-12-10T09:55:10Z")

</div>

Ok, thanks for pointing that out to me.  
Cheers

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [December 10, 2020, 10:36pm UTC](https://qa.fmod.com/t/command-instrument-set-parameter-bug/16535/5 "2020-12-10T22:36:50Z")

</div>

As burnum has said, our validator incorrectly registers command instruments as invalid. This bug will be fixed in an upcoming release of FMOD Studio.
