I’m trying to add a component to an actor in multiplayer using a Listen Server. The component is set to replicate and I’m adding the component to the actor through the server (as you can see with the HasAuthority check). However, when I add the component through the “TestEvent”, the component cannot receive input from the enhanced input system if I’m on the client. On the server though it works fine. If I add it through the “BeginPlay” event, it works fine. They are using the exact same add node, so I don’t understand why the result is different. I’ve confirmed that the client is getting the component through replication, it just isn’t receiving input.
Adding the component through the player blueprint. Doing it through test event doesn’t work for the client player, but works for the server player. Doing it through BeginPlay works for both. (note: when testing they aren’t both hooked up to the add node at the same time)
This is in the component blueprint. I’m just displaying a message on “Action” (mouse click), but only when the component is added to the server player does it register. If the component is added to the client player, it won’t register.
Why is this the case? If both methods are going through the server and adding it using the exact same node, why can only the server player receive input through the component when added through TestEvent?
Thanks!