I know there are a lot of other threads out there on this question, but I can’t seem to find what I’ve done wrong even though I’ve looked through countless of threads and followed the youtube tutorial.
I’ve got replication set on my gun and made sure what only should be called on the server does etc (Authority).
I’ve gone through my whole code and the problem seems to be the ServerProjectileLaunch. If someone can see what’s wrong it’d be great ^^.
The second part I did was because I was unsure if it had anything to do with the spawning of my projectile prefabs over network. Also tried to see if my health script worked at the same time so ignore that ^^. But the second code works as a charm, no matter if you’re playing as client or server.
Found out what the problem was, seems replication from client to server only works if you’re owning the Blueprint it is run from. The weapon didn’t count as mine therefore it could only be run if the server had picked it up. Made a workaround by making an additional event inside the playercontroller that made the client-server call there. That way the server then told the weapon to shoot.
Here is a link if someone else encounters the same issue as me!