You see, I know that OnRep are called automatically in the clients, when a replicated property value is changed, and you shouldn’t call an OnRep manually, unless you want execute it in the server.
BUT I have this class, and I have changed the value of the replicated variable (I verified the Role of the machine and change its value in the server), and no OnRep was called.
I had to execute the OnRep manually to make it work. Shouldn’t the OnRep be called automatically?
I didn’t understand very well why it didn’t trigger the callback, can someone explain to me the reason, and what I should change to make it work without a manual call?
Here are the snippets: