Could I get some help understanding Roles and some issues with server RPCs?
I'm working on replicating a weapon class and using ShooterGame as an example, but I'm running to some issues and I wanted to see if I could get some clarification on what the proper roles for each party should be. In the examples you see things like:
The only problem is that this isn't working for me, because when I run from the editor both the listen server and the client are running as ROLE_Authority. If I check into RemoteRole it says that it is ROLE_SimulatedProxy. Which seems completely backwards based on the examples.
The reason I bring this up is because I'm trying to wrap my head around why this isn't working at all for me, and I have a feeling that whatever I'm missing is causing the roles to be wrong. My issue is that client -> server calls aren't working at all. I tried changing my code to do something like this:
And verified that it was executing that block, but it still doesn't seem to execute ServerStartFire_Implementation.
That being said, the replication from the listen server to the client is working fine. So, in my case, I'm able to see the shots replicated on the client, but not the other way around.
I tried to start over with a new Actor to see if I could have done something wrong while implementing my weapon class, but the problem still exists here. Here's the code of the new class:
Then in my Character class I added the following in
And then added the call in
Here's what the logs show:
answered May 22 '14 at 02:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here