r/unrealengine•
Mart37

[Help] NetMulticast RPC only executing on server.

Help

Source: http://pastebin.com/pqqsZGgx

I was working on a multiplayer game and everything network related seemed to work well, until I tried to make a timer for the game to start. I copied the timer example from here: https://docs.unrealengine.com/latest/INT/Programming/Tutorials/VariablesTimersEvents/index.html and wanted to have the timer start via an RPC from the server so it would be in sync. However, when the server calls the RPC, the clients do not execute the function. I read that clients cannot execute RPCs on the server unless they are owned by the playercontroller, but since the server is making the call, shouldn't it be fine?

When I run without a dedicated server, the authoritative client does begin to tick down the timer that is in the level, but the other client does not. When I run a dedicated server, both clients fail to tick down the timer.

I've read a bunch of accounts where people put a ton of their RPCs through the playercontroller to get around issues like this, but I don't think that's the proper way I should be going about this.

Any help or tips would be appreciated, thanks!

Posted Sep 7, 2016, 6:42 AM UTC

12
Loading comments…