Hello,
I’m trying to set up a simple multiplayer FPS, and am running into an issue regarding weapon visibility between first/third person and different clients. I’m fairly new to messing around with replication so I suspect the answer to my issue might be simple, but after a couple of days of trial and error mixed with exhaustive searching, I’ve been unable to solve it or make any meaningful progress, so I thought I would ask here and see if anyone can point me in the right direction.
My weapons are set up as actors, child classes of “BP_WeaponMaster”. I have one that gets attached to my first person arms, and one that gets attached to the equivalent place on the third person version of the character. Dealing with character visibility has been fairly simple - just a matter of correctly setting Only Owner See/Owner No See on the skeletal meshes of the character blueprint. I’m having a tough time figuring out how to achieve the same thing with the weapon actors, which are created on BeginPlay with Spawn Actor from Class and then attached; setting the owner of the weapon actor to my character BP and then looping through the meshes in the weapon actor to set Only Owner See/Owner No See didn’t seem to have any effect at all.
Would anyone be able to explain to me the correct way to have each player see only their first person weapon actor, and only see the third person weapon actor of other players?
Any help on this would be much appreciated, and thanks in advance!