Difference between revisions of "Osiris/API/CharacterRecruitCharacter"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
Line 12: Line 12:
 
* [[Osiris/API/CharacterMakePlayer|CharacterMakePlayer]]
 
* [[Osiris/API/CharacterMakePlayer|CharacterMakePlayer]]
  
[[Category:Osiris Calls]]
+
[[Category:Osiris Calls|CharacterRecruitCharacter]]

Revision as of 16:19, 19 December 2017

Full Definition(s)
  • call CharacterRecruitCharacter((CHARACTERGUID)_TargetCharacter, (CHARACTERGUID)_OwnerCharacter)
Description

Turns NPC _TargetCharacter into a player-controlled character. The character will be assigned to the user that hosts the game, and hence also to their party. It will appear in the portrait list after _OwnerCharacter.

Notes
  • If _TargetCharacter is already a player-controlled character, this call does nothing. In particular, in that case it will not change the party assignment of _TargetCharacter.
  • Any summons and party followers of _TargetCharacter will also move to _TargetCharacter's new party.
See Also