- Home /
Identify player that is reconnecting
I am making a multiplayer. When a player disconnects during the play session, I keep some stuff about him as his name and other informations in a GameObject... When he reconnects I'd like to reassign the NetworkPlayer to the GameObject.
I was trying to use the NetworkPlayer equality comparator but it doesn't work. The guid has changed aswell.
I think it's possible because you can avoid new connections using Network.maxConnections = -1. So Unity does know the player was connected before. Is there any way to get this information too?
Answer by Tourist · Mar 14, 2013 at 10:05 AM
I solved it by copying externalIP and ipAdress and check those values during a reconnection. But I'm still looking for better ways to do it.
Your answer
Follow this Question
Related Questions
Create and Keep Track of Player LIst in Server... 0 Answers
Network view not attached 0 Answers
Network connect reconnection 1 Answer
multi game network 0 Answers
Android game crashes when attempting to start wifi hotspots 0 Answers