Replication Server -> Client
Hello every1. Im here to try to understand a bit more about replication. Im doing a skill system and as we all know the skill system has perform on the server and on the client. A simple way to do it is by clicking a button and it will perform the skill related to that button (thats what im doing). The client works good but im having a problem with the server, becasue it doesent seems to know what is the client who pressed that button so lot of problems happen. How can i tell the server whitch client he needs to "focus". Im doing the code by passing references of the player, but it is not going well. Is there anything im missing on the server->client (and only that client) that im missing? Im using (Run on Server Event for server and then a normal Event for client).
when i press the button all the clients use the skill, sometimes only 1 client, even when i passed the Player Reference from the widget (the skill button)
Well after lot of time trying/ thinking but never giving up xD i found out i was thinking the wrong way, it isnt the server who needs to know witch client performed the skill, it is the client who need to say the server "im performing the skill" so the server knows witch client is "performing" it. At least i solved it this way, i will leave this post here for the ones who have the same problem and ofc if som1 has something to add to this situations feel free to do it.
Follow this question
Once you sign in you will be able to subscribe for any updates here