Light Replication Not Working

Hello, I wanted to have a lamp that you can turn on and off in ue5.3, however i cant seem to get it replicated. This is the current code, which is not doing anything on both sides.


Ive tried several other things such as: Checking the “Component Replicates” Box On the Point Light, making both events reliable, using only the multicast event, and more. However, the best result ive gotten is only being able to turn the light on and off on the client, not on the server. I dont know why this is even though its really simple.

Notice that the Server RPC “LightOnOffServer” only works (if owning client).
My guess is noone owns the BPBedLamp so it will fail from any client.

You should make a interact input function in the PlayerController and make the RunOnServer RPC here instead then call the Interface Event “Interact” from there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.