Replicate weapon sound (Sound Cue)

the client does not hear the shots fired by the server. i´m using Cue sound

Someone please answer this. sound replication is bllsht and it’s about time something was done about it

Got the same problem and was about to create a topic about it…

I have been playing around with my weapon blueprint for an hour trying to get it replicating sound properly…

My best attempt:

Now the clients is playing sound, but it not 3d directional or anything, so it’s still not usable in my case…

Please someone post a working sample of sound replication…

If you only execute on the server, the client won’t hear it. Use multicast to play the sound on the server and all clients.

99978-projectile+on+server.png

99979-selecting+run+on+server.png

99971-selecting+multicast.png

Can’t get it to work with multicast…

No sound on client, but the host can hear the client shoot in the distance etc. correctly now.

The WeaponSystem is attached to my top-down playercontroller as a non scene component…

Can I see the the beginning of your Spawn Projectile graph? You’ll want that to be running on the server, with the reliable box ticked.

I added two more screenshots to show where my SpawnMulticastSound event was being called from.

Sure here is the SpawnProjectile function:

I tried doing as you showed, but something weird is happening now when the host shoots:
[link text][2]

If you zip up the project I can take a quick look at it, and then get back to you with what should be executing on the server and what on the client. :slight_smile:

That would be cool…

Could you add me to skype?

Please post a reply to here also, I would like to know how to do this sound replication also. I am trying to make footsteps for everyone in the game and everyone can also hear other people

Just to help people with this since a top google search result.

Why won’t it replicate to clients?

Ensure that you are Multicasting from the server. If the event is happening on the client, have the client make a RemoteProcedureCall (RPC) to the server. Note that the actor the multicast fires from needs to be set to replicate for multicasts to work properly. You can set this in actor class defaults.

Even though I play it at a location or attached, it play at full volume?

Ensure that you have set the sound to attenuate in the appropriate CUE or Sound File.

Now it decreases with distance but I can’t hear the direction?

Ensure that you have set spatialization in the appropriate Cue or Sound File. You may also have to set the sound to be a mono sound manually in certain circumstances.