- Home /
UNet "Automatic" server
Hello! What would be the best way to make "automatic" server with UNet.
Example:
Server holds players in lobby until (X) number of players is reached.
Server starts the game.
When player dies, server kicks him.
Server gives reward to last player alive.
Server restarts/stops.
Is this possible with HLAPI?
Answer by starikcetin · Jul 02, 2015 at 07:20 AM
Why not trying matchmaking system? That exactly does 1-2-5. and 3-4 is codable easily by yourself.
But the host needs to be non-player, is that possible with the matchmaking system?
Well, you have not given that information in question. That's why it says you "Be specific" while asking.
But if you already have a non-player server, things even become easier. $$anonymous$$aybe matchmaking is not suitable for this condition but you can easily write your own code that gets all players, loops them until it reach a certain amount then move them to another scene, etc.
Your answer

Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Best cross platform Http Library? 1 Answer
How to use NetworkManager.ServerChangeScene ? 1 Answer
Network Connection Works Locally, but not Publicly 0 Answers