Difference between revisions of "Osiris/API/CharacterTransformAppearanceTo"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented CharacterTransformAppearanceTo)
 
m (Notes)
 
Line 9: Line 9:
 
===== Notes =====
 
===== Notes =====
 
* If '''_Character''' is global and '''_Target''' is local, the game may crash on level unloads. Make '''_Target''' global as well in this scenario to work around this issue.
 
* If '''_Character''' is global and '''_Target''' is local, the game may crash on level unloads. Make '''_Target''' global as well in this scenario to work around this issue.
 +
* This will also change the voice of '''_Character''' to the one of '''_Target''' (which means that lines spoken by the character recorded for '''_Character''' will no longer be voiced, unless they were also recorded for '''_Target''').
 +
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterTransform|CharacterTransform]]
 
* [[Osiris/API/CharacterTransform|CharacterTransform]]

Latest revision as of 13:08, 30 April 2019

Full Definition(s)
  • call CharacterTransformAppearanceTo(((CHARACTERGUID)_Character,(CHARACTERGUID)_Target,(INTEGER)_CopyEquipment,(INTEGER)_CopyDisplayNameAndIcon)
Description

Transforms the visual appearance of _Character to the one of character _Target. _Target has to be a character in the current level (or a global one), not a root template.

Other parameters allow you to customise whether certain properties of _Character should be replaced by the corresponding ones of _Target:

  • _CopyEquipment: indicates whether the equipment should be replaced.
  • _CopyDisplayNameAndIcon: indicates whether the name and icon should be replaced. Additionally, this also replaces the voice of _Character with the voice of _Target. This is the only transform call with which this effect can be achieved.
Notes
  • If _Character is global and _Target is local, the game may crash on level unloads. Make _Target global as well in this scenario to work around this issue.
  • This will also change the voice of _Character to the one of _Target (which means that lines spoken by the character recorded for _Character will no longer be voiced, unless they were also recorded for _Target).
See Also