Download

AudioComponent does not appear to play on host in multiplayer

I’ve got the following Blueprint set up to attempt to modify an AudioComponent’s volume and pitch according to user input. It works perfectly in single-player mode and in remote clients in multiplayer, but no sound can be heard at all on the listen client (host).

set-thruster-volume.png

I cannot seem to figure out why it’s not playing.

This is how the component is set up:

3b29ad14eaca122ae2b043715294c68ecfe1c627.png

I have verified that GetLastMovementInput is returning the correct and expected value on all.

What am I doing wrong, here?

Strangely, calling Play on the AudioComponent in response to some event like a keypress does cause it to start working on the host, but calling Play in an event such as BeginPlay does not.

Surely that’s a relevant clue, but I can’t figure out what it’s trying to tell me.

I also asked this question on the AnswerHUB, just in case. It seems like the answer should be something obvious, or there is another way to do this that should be obvious, but it’s not obvious to me :confused: