I have a character with a 1st person mesh and gun, and a 3rd person mesh and gun for multiplayer viewing.
Originally I was using the 1st person template mesh which has a gun built in, but now they are separated and a different gun blueprint is spawned into the character’s hands.
I need to hide the 3rd person gun from the owner (allowing him to see the 1st person gun), and allow connected clients to see the owner’s 3rd person gun (but hide the owner’s 1st person gun).
In the character components this was easy to do, as there are check boxes for “Owner no see” and “Only owner see” for most components, but when you attach an actor through blueprint, these options aren’t available.
Does anyone know a way to achieve this?
Thanks.
Edit: I set the gun blueprint to “Only owner see” before spawning which makes that blueprint disappear for both server and client. I don’t know why, or who the owner is after spawning and attaching. Setting the gun to “Owner no see” seems to have no effect.
Performing “Get Owner” on the actor after spawning returns “None”. This may be something settable in C++, but I don’t see a way to assign an Owner to a spawned actor in blueprint.