Difference between revisions of "Osiris/API/CharacterAssignToUser"
From Divinity Engine Wiki
m |
m |
||
Line 6: | Line 6: | ||
* This routine does nothing if '''_Character''' is '''NULL''', if it's not a player-controlled character, or if it is already assigned to the user with ID '''_UserID'''. | * This routine does nothing if '''_Character''' is '''NULL''', if it's not a player-controlled character, or if it is already assigned to the user with ID '''_UserID'''. | ||
* Characters can also be assigned to users by the game engine itself when they connect to a game or when someone else disconnects. | * Characters can also be assigned to users by the game engine itself when they connect to a game or when someone else disconnects. | ||
− | |||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterGetReservedUserID|CharacterGetReservedUserID]] | * [[Osiris/API/CharacterGetReservedUserID|CharacterGetReservedUserID]] |
Revision as of 19:47, 29 November 2017
Full Definition(s)
- call CharacterAssignToUser((INTEGER)_UserID, (CHARACTERGUID)_Character)
Description
Assigns control over the player-controlled character _Character to the user with ID _UserID. The character will also be moved to the new user's party.
Notes
- This routine does nothing if _Character is NULL, if it's not a player-controlled character, or if it is already assigned to the user with ID _UserID.
- Characters can also be assigned to users by the game engine itself when they connect to a game or when someone else disconnects.