# How to play a 2D Sound without actors other than the owner hearing it

**URL:** https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222
**Category:** Unreal Engine
**Tags:** ue4
**Created:** [January 16, 2022, 8:06pm UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222 "2022-01-16T20:06:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![starcrater21](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/starcrater21/32/3047_2.png) [@starcrater21](https://qa.fmod.com/u/starcrater21)
#### Post date: [January 16, 2022, 8:06pm UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/1 "2022-01-16T20:06:01Z")

</div>

How do you play a 2D Sound without actors other than the owner hearing it? I have some UI sounds for my player pawn that should should only be heard by that player and none of the other players, and the AI players use a instanced version of that pawn, so whenever the actor has low health you can hear the UI sound that only that actor should be able to hear

---

<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 16, 2022, 8:43pm UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/2 "2022-01-16T20:43:00Z")

</div>

The easiest way is probably to condition the triggering of the sound with “is player controlled” (or a test on the player controller, if multiplayer).

---

<div class="post-metadata">

### Author: ![starcrater21](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/starcrater21/32/3047_2.png) [@starcrater21](https://qa.fmod.com/u/starcrater21)
#### Post date: [February 13, 2022, 6:37pm UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/3 "2022-02-13T18:37:32Z")

</div>

I still cant get this to work, Is there a function or variable that can play the event/timeline to only the owning player controller?

---

<div class="post-metadata">

### Author: ![starcrater21](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/starcrater21/32/3047_2.png) [@starcrater21](https://qa.fmod.com/u/starcrater21)
#### Post date: [February 13, 2022, 7:23pm UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/4 "2022-02-13T19:23:52Z")

</div>

Im currently just placing 3D Sounds with low attenuation ranges so only if your right where the camera is you can hear it

---

<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: [February 14, 2022, 1:20am UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/5 "2022-02-14T01:20:42Z")

</div>

Have you considered only triggering the event on the machine that it’s supposed to play on? Presumably your game already makes a distinction between the “current player’s actions” and “the actions of other players,” so having UI sounds triggered by the former and not the latter should be relatively simple.

---

<div class="post-metadata">

### Author: ![starcrater21](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/starcrater21/32/3047_2.png) [@starcrater21](https://qa.fmod.com/u/starcrater21)
#### Post date: [February 14, 2022, 1:09pm UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/6 "2022-02-14T13:09:41Z")

</div>

Would playing the sounds on the specific players instance of the game work?

---

<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: [February 15, 2022, 12:01am UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/7 "2022-02-15T00:01:27Z")

</div>

Yes.

The FMOD Engine has no concept of other instances of itself - and in a multiplayer game, each machine involved in the game is running a different instance of the game, and thus a different instance of the FMOD Engine. Those game instances might communicate with each other, but the different instances of the FMOD Engine do not, and so can be commanded to play different sets of events if you choose.

---

<div class="post-metadata">

### Author: ![starcrater21](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/starcrater21/32/3047_2.png) [@starcrater21](https://qa.fmod.com/u/starcrater21)
#### Post date: [February 15, 2022, 12:13am UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/8 "2022-02-15T00:13:42Z")

</div>

if simulating in editor via PIE, will FMOD run two instances or will it share the same instance?

---

<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: [February 15, 2022, 3:10am UTC](https://qa.fmod.com/t/how-to-play-a-2d-sound-without-actors-other-than-the-owner-hearing-it/18222/9 "2022-02-15T03:10:19Z")

</div>

Playing in editor creates and runs a single instance of the game, which plays in the editor. This instance of the game creates and runs a single instance of the FMOD Engine.

If your game’s multiplayer works by connecting to other copies of the game over a network, then each running copy of the game it connects to is a different instance of the game, with its own instance of the FMOD Engine.

On the other hand, if your game uses local splitscreen multiplayer, then there is only one instance of the game and one instance of the FMOD Engine. In this case, the concept of playing a sound only through one player’s Ui is meaningless, because all players are using the same screen and speakers.
