Show/Hide Meshes Based on
I am making a Multiplayer game. The perspective is in first person, and I am using a mixture between 3rd person meshes an 1st person ones. Each player has 2 meshes, a first person one and third person one, each player should be able to see their own First person mesh, and everyone else 3rd person mesh, and they shouldn't be able to see their own 3rd person mesh, or anyone else's 1st person mesh. This is to achieve better readability, and to not have personal meshes getting in the way of the player controlling it. This is how it works in Overwatch. So that might be a good point of reference. So how do I hide meshes from specific camera, but not from everyone else?
asked Feb 09 '19 at 04:46 PM in Blueprint Scripting
Use IsLocalController node. True means the pawn is owned by the controller and this is where you hide ThirdPerson and unhide FirstPerson. If False, hide FirstPerson and unhide ThirdPerson because the pawn is not owned by the controller.
Alternatively, if available, you can use SetOwnerNoSee and SetOnlyOwnerSee nodes. Use what you think is more readable or whatever you prefer.
Follow this question
Once you sign in you will be able to subscribe for any updates here