I have an actor called: “ActorA” where both players must be able to call an RPC functions for turning on a point light inside of the actor.
Inside my player controller, I have the event trigger input ( F button on the keyboard) which calls a blueprint interface function called: Interact" inside the ActorA.
Inside ActorA interface function " interact" I’m checking with Has Authority: if the function is executed on the client or the server-side.
So far so good. The problem is if I call this function from the client it goes on Remote authority and it tries to call ToggleVisibilityOnServer Event function and since ActorA its self has no owner or the owner is the server, this event is getting dropped and doesn’t work if it’s called from the client since the client it’s not the owner of this actor and all RPC’s are dropped.
I’ve already tried with Set Owner node inside ActorA in order to make the client the Owner of ActorA but it never works.
Since I want to keep all my events for ActorA inside ActorA and the listen server and the client call them from the player controller I want to make the Client Owner of the ActorA in order to BOTH the server and the client can Run RPC’s properly.
Could anybody help me, please? I’m kinda lost here.