Network: can't set server's "set location"

Hello.

I’m trying to change player’s location as soon as they’ll get hit from line trace. Now implementing this into multiplayer seem to bring some difficulties. If client shoots server-player its location only changes on client’s view but not on server side. As soon as the server starts moving again the client will see them from the original location again.

player BP:


I tried to make 2 custom events that would replicate on both sides (green). I feel like I’m not doing this right as I’m not familiar with the networking but still couldnt find answer from the net. Any advice?

OK I actually got it working now. I realized that I just can’t call “set location” from the pawn class (client) but rather from gamemode class.