# how does fmod know which event instance to access?

**URL:** <https://qa.fmod.com/t/how-does-fmod-know-which-event-instance-to-access/11491>\
**Category:** Unity\
**Created:** [June 2, 2014, 12:53pm UTC](https://qa.fmod.com/t/how-does-fmod-know-which-event-instance-to-access/11491 "2014-06-02T12:53:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nomand](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@nomand](https://qa.fmod.com/u/nomand)\
**Post date:** [June 2, 2014, 12:53pm UTC](https://qa.fmod.com/t/how-does-fmod-know-which-event-instance-to-access/11491/1 "2014-06-02T12:53:40Z")

</div>

I have multiple objects that need to play the same event during their “on fire” condition. How do I make those events instances that play at specific positions to those objects? and How does fmod know which event parameters to access from which object?

---

<div class="post-metadata">

**Author:** ![Guest1](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@Guest1](https://qa.fmod.com/u/Guest1)\
**Post date:** [June 12, 2014, 1:40am UTC](https://qa.fmod.com/t/how-does-fmod-know-which-event-instance-to-access/11491/2 "2014-06-12T01:40:35Z")

</div>

FMOD\_StudioSystem.instance.PlayOneShot can take a Vector3 to specify the location to play the event. If you are setting up the EventInstance yourself, you can call set3DAttributes. See the FMOD\_StudioSystem PlayOneShot source to see an example of how to use the function and how to convert a Unity Vector3 to an FMOD.VECTOR.
