Userid: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with 'A '''userid''' is a unique integer given to each player who connects to a server. Numbers are assigned sequentially, and never re-used. IDs are chiefly used to identify play…')
 
mNo edit summary
Line 3: Line 3:
IDs are chiefly used to identify players in [[events]].
IDs are chiefly used to identify players in [[events]].


{{warning|It can be easy to confuse a player's ID with their [[entity index]], as until someone disconnects from a server they will be in sync.}}
{{warning|It can be easy to confuse a player's ID with their [[entity index]], as until someone disconnects from the server they will be in sync.}}


== Usage ==
== Usage ==

Revision as of 07:59, 19 October 2010

A userid is a unique integer given to each player who connects to a server. Numbers are assigned sequentially, and never re-used.

IDs are chiefly used to identify players in events.

Warning.pngWarning:It can be easy to confuse a player's ID with their entity index, as until someone disconnects from the server they will be in sync.

Usage

IDs are assigned by the engine, and cannot be changed.