Difference between revisions of "Osiris/API/CharacterMakePlayer"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* call '''CharacterMakePlayer'''(''(CHARACTERGUID)'''''_TargetCharacter''',''(CHARACTERGUID)'''''_OwnerCharacter''')
+
* call '''CharacterMakePlayer'''(''(CHARACTERGUID)'''''_TargetCharacter''', ''(CHARACTERGUID)'''''_OwnerCharacter''')
 
===== Description =====
 
===== Description =====
 
Turns NPC '''_TargetCharacter''' into a player-controlled character. The character will be assigned to the same user as the one controlling '''_OwnerCharacter''', and will appear in the portrait list after '''_OwnerCharacter'''.
 
Turns NPC '''_TargetCharacter''' into a player-controlled character. The character will be assigned to the same user as the one controlling '''_OwnerCharacter''', and will appear in the portrait list after '''_OwnerCharacter'''.
 +
 +
If '''_OwnerCharacter''' is '''''NULL_00000000-0000-0000-0000-000000000000''''', the character will be assigned to the host user (and hence this function will behave identical to [[Osiris/API/CharacterRecruitCharacter|CharacterRecruitCharacter]]).
 +
 
===== Notes =====
 
===== Notes =====
 
* /
 
* /
 
===== See Also =====
 
===== See Also =====
 +
* [[Osiris/API/CharacterAssignToUser|CharacterAssignToUser]]
 +
* [[Osiris/API/CharacterGetReservedUserID|CharacterGetReservedUserID]]
 +
* [[Osiris/API/CharacterMakeNPC|CharacterMakeNPC]]
 
* [[Osiris/API/CharacterRecruitCharacter|CharacterRecruitCharacter]]
 
* [[Osiris/API/CharacterRecruitCharacter|CharacterRecruitCharacter]]
+
* [[Osiris/API/CharacterReservedUserIDChanged|CharacterReservedUserIDChanged]]
[[Category:Osiris Calls]]
+
 
 +
[[Category:Osiris Calls|CharacterMakePlayer]]

Latest revision as of 16:16, 19 December 2017

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

Turns NPC _TargetCharacter into a player-controlled character. The character will be assigned to the same user as the one controlling _OwnerCharacter, and will appear in the portrait list after _OwnerCharacter.

If _OwnerCharacter is NULL_00000000-0000-0000-0000-000000000000, the character will be assigned to the host user (and hence this function will behave identical to CharacterRecruitCharacter).

Notes
  • /
See Also