Assigning IDs in irrNetLite

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
koaandl
Posts: 6
Joined: Mon Jul 26, 2010 12:30 am

Assigning IDs in irrNetLite

Post by koaandl »

I am using irrNetLite as the network component for my game and i need a way to be able to identify each client (it consists of a headless server and two clients).

I tried sending a set ID for each connection (eg 1 for connection 0, 2 for connection 1 etc), but for some reason it did not work.

How would i set unique IDs for the two clients?

Thanks in advance!
Bate
Posts: 364
Joined: Sun Nov 01, 2009 11:39 pm
Location: Germany

Post by Bate »

You don't even have to do that yourself. A client automatically gets an ID assigned.

netManager->getPlayerNumber()
Never take advice from someone who likes to give advice, so take my advice and don't take it.
Post Reply