As promised video walkthrough.
FP Weapon Class
TP Weapon Class
Coloring it for debug
Hey, Thank you so much for the tutorial! and sorry I haven’t replied for a week, been taking a break from ue5 to focus on college. I will have a look over this tutorial later and apply what I can to my project. Having to do it later bc I got a bunch of work to do lol. Thanks again though!
Hey again, implemented some of what you showed in your tutorial into my project and its kinda worked so far. I say “kinda worked” because I’ve ran into a problem that I cant even understand what’s causing it let alone how to fix it.
When I pick up the weapon as the server player, it appears in hand and a TP variant shows up for clients too. However, when a client picks up the weapon the server player cant see the clients TP variant but other clients can see the TP variant.
An additional 2 problems occur when dropping a weapon (for now I only have a simple “Destroy actor” that executes on dropping, with the FP weapon as the target); for the server, it drops the weapon, spawning 1 item variant at his feet and de-spawns the FP and TP variants of the weapon
but for the clients, it spawns 2 weapons at the servers feet. On top of that the clients cant drop a weapon at all.
Below are some images of both implemented code and images of the problem;
(Large left side screen is server POV, both on right are client POVs)
[BP_WeaponBASE_ITEM]
[BP_WeaponBASE_MAIN (FP)]
[BP_Player]
Obviously some things have been added/changed to fit around existing code and setups in the project, but most of it is pretty much the same.