Blueprint replication snippet works if comes from Begin Play but not from Input event

Hi, I’ve set a blueprint up so a RepNotify variable value should be changeable in two ways: from Begin Play and from an Input event (when a key is pressed).Replication only works from the Begin Play case, not the Input event, even the snippet is the same for both (modifing the variable). Do you know why and how to solve it?

Edited with a capture:

The actor only spawns in Begin Play case, that’s why I think replication isn’t happening.

Any ideas?

I have the same problem. I think this is due to Event Begin Play is executed on both server and client, whereas Input Events are only firing on clients. I also would like to know how to solve this.

Where are you calling “Input action Shoot” from? If you are calling it from the playercontroller then you need to ask the server to change the variable for you. Create a custom event which is set to run on server, and the call that event when you press the button. When the server changes a replicated variable the value is replicated to all clients and the the Repnotify function is also called on all clients (and the server). Hope this helps. and check this link as well: RPCs