Hello, I wish to create a multiplayer shooter game, I’m sure this question has been asked alot but I just cant find any documentation on it.
I have a pair of arms for my first person camera, however, obviously they need to be invisible for other players, since seeing a pair of arms float around is unrealistic, how would I achieve that?
There’s a flag under “rendering” that you can set, so only the “owner” can (or can not) see an actor or component. If you’re lucky, it will work just like that. If not, you probably need to deal with ownership first. Another approach would be to prevent the arm-component from replicating and only create it locally on the client.
Do you mean parent and childs?
Not sure what you’re asking…
Your arms have a mesh component. Find it in your blueprint-class and check the box “Only Owner See” under rendering. Or, if you’re using code exclusively, set component->bOnlyOwnerSee to true after creating it in the owning actor’s constructor.
Making it exist only on the owning client is a bit more complicated. I wouldn’t try that, unless the “standard” solution doesn’t work for some reason.
Thank you!
You help me out just in a matter of time!
I only needed to uncheck “Only Owner See” for weapon and the mesh(arms)