Event dispatcher multiplayer replication problem
I seem to have ran into a replication problem, I've attached the pictures of the blue prints but i'll explain a little first; I am trying to get a multiplayer game working using the steam online sub system, The server side can do everything (obviously) where as the client side can not. What I can't figure out is why the event dispatcher, "Pickup item" isn't being called on the client. More than likely, I assumed wrong in thinking that calling it via a replicated custom event would be enough for it to be replicated.
To make sure what was being called and what wasn't I have added breakpoints, the code works on the client side untill it gets to the "CallPickUpItem" node, Just after the pickupitemevent I added a breakpoint to the branch node and I found out that it is working on the server but isn't working on the client, how come? anybody got any ideas? Cheers..
Your event is set to "execute on server". That means only on server. If you want that entire event to be called on clients, use "multicast" instead, or put call pickupitem node in another event which is multicasted, and call that event instead of the dispatcher in the first one. From the looks of it you should do the latter, as interaction trace looks like server only logic.
Multicast events, when called on the server, will get executed on all clients. Execute on server events are called by clients who need to tell the server something, and the event runs on the server.
Hope that helps
answered Apr 03 '15 at 10:20 PM
I don't like to bump but as i'm still stuck and would like some help, I don't want to start a new thread, I am still stuck on this issue, I can not get the event dispatcher to call on the client? Is there a work around?
answered Apr 13 '15 at 07:23 AM
To dispatch an event to the owning client. 1. Create a custom event to call from server to owning client. 2. Call the dispatcher within the event.
If that doesn't work it seems your not the owning client.
answered May 27 '15 at 06:32 AM
You still need answer?
answered Dec 28 '16 at 05:44 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here