Hello guys!
I have made a simple Multiplayer FPS Blueprint with a Line-Tracing-Weapon System.
Most of the “coding” was inspired by the Blueprint-Networking Tutorial from the UE4 youtube channel,
and I think it can probably be improved in a thousand ways and it may be very inefficient.
This is my basic shooting setup:
You may see here that I have almost no clue regarding networking in blueprints, haha.
This is the Shoot Projectile Function that is called (where the problem lies):
Basically, if I set [Get the Player Camera Manager] as the target at [Get Actor Location] and [Get Actor Forward Vector] (both on the left side here), everything works perfect, but ONLY for the server.
The client can then also shoot but every(!) shot hits the server, no matter the clients camera. It seems like the clients don’t get their lines traced.
If I just leave it out, it works but every line-trace is “delayed” by one shot.
Damage seems to work properly so far.
I think my problem can be summed up in one question:
How can I use Line-Tracing-Weapons in Multiplayer?
I wan’t Clients to be able to shoot each other with Line-Tracing.
Or are weapons handled totally different?
(And how can my “code” me optimized in other ways?)
Every piece of probably helpful information is welcome!
Thanks for your time and help
PS.: I can post the ShotFX and Make Damage Functions too, if it helps.