Vaei
Sorry, I’m new to Unreal so the terminology is a little different. When I said the server owns the object I meant it is owned by the Actor that is controlled by the person who is running the server on their computer. Thanks for the definition tips.
I believe your replication problem is because your object is set up incorrectly. Even Unreal’s replication doesn’t work with your set up. I think it’s because you are trying to replicate something else’s position and not the cube’s. Drag the cube into the level first and then put a blueprint on that and it will replicate the cube’s movement. Check out this post with relevant Unreal Stack Overflow explanation and a screenshot.
I do not understand how you can call RPCs from objects you don’t own anyway. I don’t think anyone can just call an RPC on any object that they want without ownership.
Client RPCs: “If the RPC is being called from client to be executed on the server, the client must own the Actor that the RPC is being called on.”
And MultiCastRPCs: “If they are called from clients, they will only execute locally, and will not execute on the server.”
Typically I would think you would send over an RPC to the server which would then send an RPC to PlayerControllerB (the owner in your scenario).
It will take some time to process and research a bit more about your second post so I’ll reply to that later. Thanks for the tips!