So basically what I have is a script attached to one of my UI elements, that is supposed to activate another UI menu while simultaneously deactivating the first person player when a key is pressed. The game is played in the first person, and as such the UI menu doesn't really work when the FP script is running, since the cursor will disappear even if I use Cursor.visible once. The only way I can see my menu working is if when they player opens this menu, they temporarily disable themselves (The FP script). The problem is this is a multiplayer game, so I need the player that pressed the key/opened the menu to be disabled, but no one else. How do i access this one player specifically off of a key press?
↧