Multicast Event only running correctly on Server

Hi guys,

So I’m having trouble figuring out where I’m going wrong here. Everything else so far in my project I have been able to replicate successfully. I am implementing a weapon, currently it has nothing in it except for a particle effect, but I cannot get it to replicate between clients. When running the multicast on the server, all clients see the effect and print their string, however when running the multicast on clients, only the owning client sees the effect and prints it’s string. I have attached screenshots to better illustrate what I mean.

Any help is much appreciated!

Edit: After some more reading, I think it may have something to do with ownership. I have tried spawning the weapon actor on the server and on a multicast, but this made no difference. I’m stumped!

Multicast while done on a client is only going to be called by the same client. You can look up RPC’s in the documentation for more info. To solve it you have to make a RunOnServer event from an Actor that the specific Client owns like the Character. Now that you are Server-side on the Character you can go ahead and make the Multicast back to all the clients.

If you want to perform the RunOnServer event directly on the Weapon the server has to “SetOwner” to something that the client already owns like the character the client controls.

Thank you both! I have managed to get it to work correctly by calling a server event in my character BP to then call my fire event in the weapon BP