Problem with damage from clients
Hello there, lately I have been working on my first unreal engine game. But now I have a problem, I have a damage system set up that works perfectly on single player, but if I try to run it on a server with 1 extra client, the client can't deal damage. It probally has to do with authority but I dont know how to fix it, please help me.
Here is my damage system:
And one important thing, I want to do as much as possible in blueprints.
Hey, first you have to create a custom event on the object that will be dealing the damage, and set it to run on server. when that event triggers, have it deal the damage. finally, if you have a health variable anywhere, that is set from the damage, check that it is set to replicate, so the client will see their health go down.
edit: I can see that you have health replicating, so you just need to make sure the server is the one calling the event that causes damage.
Follow this question
Once you sign in you will be able to subscribe for any updates here