Replication behaviour doubt
Hi. I've been trying to set a variable to repnotify and call a function. I have a dedicated server and two clients. The way it works is:
Now, the other client doesn't get called. In order to get called from this function (step 2) I need to search for the server controller of the other client and modifies the variable as well. I've been looking into how to make the variable triggers the function in all the clients without having to change the variable in each server version of the controller and I found the "REPLIFETIME" in which you can add a condition like "only replicates in autonomous proxy clients, or only in simulated proxy" and I tried to set that to None, so it would replicate to all of them, but I still get only one call to the function. Could anybody explain me if there is something bad with my implementation, or if I understood the repnotify behaviour wrong, or if I do need to change the variable in each controller first to get the function to be called? Im doing everything in c++ if you need code I can paste it but I don't have it atm. anyway it would be like
Thanks!!
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here
Show us your implementation:
This function would be like that atm
Is that what you were asking for I guess? Thanks for answering!
I was just thinking... could it be that since I created my own custom button and added to the viewport on the client, each client has a different HUD, and only one pressed the button that triggered the server function "ButtonPressedBehaviour" so only one of the server version of the controllers goes through it?