Osiris/API/CharacterGetReservedUserID: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Explain what users are) |
||
Line 4: | Line 4: | ||
Returns the ID of the user that controls '''_Character''' in '''_User'''. | Returns the ID of the user that controls '''_Character''' in '''_User'''. | ||
===== Notes ===== | ===== Notes ===== | ||
* | * "Users" are the game term for human players in the game. Every client that connects to the game, including the one that started the host game, gets assigned a User ID. | ||
* User IDs are volatile: they can change at any time, in particular when loading a saved game, or when someone disconnects and reconnects. Never store this value in a database. Only use it immediately after requesting it, within the same frame. | |||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterAssignToUser|CharacterAssignToUser]] | * [[Osiris/API/CharacterAssignToUser|CharacterAssignToUser]] |
Revision as of 11:30, 28 November 2017
Full Definition(s)
- call CharacterGetReservedUserID([in](CHARACTERGUID)_Character,[out](INTEGER)_User)
Description
Returns the ID of the user that controls _Character in _User.
Notes
- "Users" are the game term for human players in the game. Every client that connects to the game, including the one that started the host game, gets assigned a User ID.
- User IDs are volatile: they can change at any time, in particular when loading a saved game, or when someone disconnects and reconnects. Never store this value in a database. Only use it immediately after requesting it, within the same frame.