Client player opens door, does not display on server player

im using the HQ residential house which went free in the marketplace, now with my networked BP’s set up, the server player can open the door, and walk inside the house without a problem ( everything is displayed on the client player as well) but however, when a client player tries to open the door, the door opens, but he still cannot walk inside the house, and nothing is displayed on the server player.

I have the actor and all its components set to replicate, note that i have also used the switch on authority node in many places. How do i set up these BP’s so the client can walk inside the house and also be displayed on the server?

RunOnServer events can only be called by the player that is set as Owner of the Actor. The Server is Owner of the Door so any RunOnServer events made by the Client will fail. On the Character you can call the RunOnServer event since you should already be Owner of your character, and then afterwards call the OpenDoor Event from the Server which Sets a RepNotify variable to Open and within the OnRep function do the actual Opening of the door animation etc.

  1. Character (client-side) : Event=InputAction_Interact (Get Door reference by linetrace eg.)
  2. **Character (server-side) ** Event=Server_Interact (RunOnServer event with Door reference input parameter)
  3. Door (server-side) Event=Interact (Set RepNotify bool Open = true)
  4. Door (all) Function=OnRep_Open = true
  5. Door (all) Event=OpenAnimation