Is there an equivalent to "owner no see" & "only owner see" for attached components?
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?
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.
For anyone still looking for the answer to this (as I was today), I did this:
I set the owner of the spawned blueprint to [Get a reference to self] to ensure it was assigned an owner and then set an Owner No See block directly to the return value of the actor. - Hope this helped!
Follow this question
Once you sign in you will be able to subscribe for any updates here