# Check Event Instrument or Type

**URL:** <https://qa.fmod.com/t/check-event-instrument-or-type/21313>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [March 1, 2024, 5:57pm UTC](https://qa.fmod.com/t/check-event-instrument-or-type/21313 "2024-03-01T17:57:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSMallard](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@JSMallard](https://qa.fmod.com/u/JSMallard)\
**Post date:** [March 1, 2024, 5:57pm UTC](https://qa.fmod.com/t/check-event-instrument-or-type/21313/1 "2024-03-01T17:57:34Z")

</div>

I was wondering if there is a way to check if an event has a Programmer Instrument through something like the EventDescription or other data.

I’m interested in handling these events differently in my audio engine and this just seems like a potential solution for that. I didn’t see anything quite like what I was looking for in the api, but maybe I missed it.

I want to do this before creating an instance or playing a sound, so I wanted to use some sort of info from the event. Is this possible?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [March 4, 2024, 3:03am UTC](https://qa.fmod.com/t/check-event-instrument-or-type/21313/2 "2024-03-04T03:03:02Z")

</div>

There’s no existing functionality in the API that will tell you whether an event contains programmer instruments. However, you can use [event user properties](https://www.fmod.com/docs/2.02/studio/advanced-topics.html#user-properties) for this purpose - if you set a property on your events to indicate whether they contain a programmer instrument in FMOD Studio, you can use [`Studio::EventDescription::getUserProperty`](https://www.fmod.com/docs/2.02/api/studio-api-eventdescription.html#studio_eventdescription_getuserproperty) at runtime to retrieve the value of the property.
