Any way to make player invisible to other players
#4

Quote:
Originally Posted by Rudy_
Посмотреть сообщение
Right.
But you can do something like, first Save player and camera pos, Set player pos to any far place, Return 0 on onplayerupdate, SetPlayer and Camera pos again to the saved one. This way no frozen player.
Instead of that, why not save the virtual world and then set it to an unused one? Then, return 0 under update callback. Whenever the player becomes visible, return 1 under update call and set back the world.

EDIT : I wonder why saving stuffs really is required. Just return 0 under OnPlayerUpdate whenever player wants to be invisible. However, player won't be able to send any player synced data to the server. The client will only receive other data.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)