Difference between revisions of "Osiris/API/CharacterAssignToUser"

From Divinity Engine Wiki
Jump to: navigation, search
m (Link to API page that explains what a user is)
Line 2: Line 2:
 
* call '''CharacterAssignToUser'''('''''[in]'''(INTEGER)'''''_UserID''','''''[in]'''(CHARACTERGUID)'''''_Character''')
 
* call '''CharacterAssignToUser'''('''''[in]'''(INTEGER)'''''_UserID''','''''[in]'''(CHARACTERGUID)'''''_Character''')
 
===== Description =====
 
===== Description =====
Assigns control over the player-controlled character '''_Character''' to the user with ID '''_UserID'''.
+
Assigns control over the player-controlled character '''_Character''' to the [[Osiris/API/CharacterGetReservedUserID|user]] with ID '''_UserID'''.
 
===== Notes =====
 
===== Notes =====
 
* UserIDs 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.
 
* UserIDs 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.

Revision as of 12:50, 28 November 2017

Full Definition(s)
  • call CharacterAssignToUser([in](INTEGER)_UserID,[in](CHARACTERGUID)_Character)
Description

Assigns control over the player-controlled character _Character to the user with ID _UserID.

Notes
  • UserIDs 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