I am currently making a spectate mode similar to Counter Strike to where you left click or right click in order to switch what player you spectate. The murder/stop it slender gamemodes also uses this type of spectate. Everything works fine except when the player being spectated dies, disconnects, or joins spectators it will not auto switch to the next player because I cannot get both the spectator and spectated player entity data in the same function. Anyway long story short:
If player A is spectating player B and you have the entity data for player B is there anyway to retrieve the entity data for player A also?
Or in other words: Is there a way to get the player/entity who is spectating a player?
just keep track of when you set SpectateEntity?
Sorry, you need to Log In to post a reply to this thread.