Hi, I’m making a multiplayer fps, and in order to enable/disable the proper meshes (first person arms & third person fullbody) I need to know if that character is currently being seen in the first or third person
In order to know that, I need to know if it’s being locally viewed using IsLocallyViewed, so as to exclude any character that’s not currently the viewtarget and thus render their 3rd person mesh instead
Currently I am doing these checks when OnBecomeViewTarget is called, as well as when the camera mode on that character changes through gameplay
When the player is the host or is playing in standalone this works fine, however when the client character spawn, IsLocallyViewed is always false when checked from OnBecomeViewTarget. checking it any time after that call will yield the correct result
As of right now, this results in clients always having their third person mesh rendered until the camera mode changes, unless I replace IsLocallyViewed with IsLocallyControlled, which is correct
Any idea what could be the cause and how to fix it?
On my character :
In AC_CameraModeManager (component on the character) :