Difference between revisions of "Osiris/API/CharacterCreateAtTrigger"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * call '''CharacterCreateAtTrigger'''(''(TRIGGERGUID)'''''_Trigger''', ''(STRING)'''''_TemplateId''', ''(INTEGER)'''''_PlaySpawn''') ===== Descr...")
 
m
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
* call '''CharacterCreateAtTrigger'''(''(TRIGGERGUID)'''''_Trigger''', ''(STRING)'''''_TemplateId''', ''(INTEGER)'''''_PlaySpawn''')
 
* call '''CharacterCreateAtTrigger'''(''(TRIGGERGUID)'''''_Trigger''', ''(STRING)'''''_TemplateId''', ''(INTEGER)'''''_PlaySpawn''')
 
===== Description =====
 
===== Description =====
Creates a character of the root template defined by '''_TemplateId''' at the '''_Trigger'''. If '''_PlaySpawn''' is '''1''', the creature will play its spawn animation as it appears.
+
Creates a character of the root template defined by '''_TemplateId''' (in a <root template name>_<root template UUID> format) at the '''_Trigger'''. If '''_PlaySpawn''' is '''1''', the creature will play its spawn animation as it appears.
 
===== Notes =====
 
===== Notes =====
 
* This does not return the character being created. If you need to reference that character, it is best to [[Osiris/API/GetPosition|query the '''_Trigger''''s position]] and use [[Osiris/API/CharacterCreateAtPosition|CharacterCreateAtPosition]], which does return the character.
 
* This does not return the character being created. If you need to reference that character, it is best to [[Osiris/API/GetPosition|query the '''_Trigger''''s position]] and use [[Osiris/API/CharacterCreateAtPosition|CharacterCreateAtPosition]], which does return the character.
 
===== See Also =====
 
===== See Also =====
* [[Osiris/API/CharacterUnFreeze|CharacterUnFreeze]]
 
 
* [[Osiris/API/CharacterAppearAt|CharacterAppearAt]]
 
* [[Osiris/API/CharacterAppearAt|CharacterAppearAt]]
 
* [[Osiris/API/TemporaryCharacterCreateAtTrigger|TemporaryCharacterCreateAtTrigger]]
 
* [[Osiris/API/TemporaryCharacterCreateAtTrigger|TemporaryCharacterCreateAtTrigger]]
Line 29: Line 28:
 
* [[Osiris/API/CharacterAppearOutOfSightToObject|CharacterAppearOutOfSightToObject]]
 
* [[Osiris/API/CharacterAppearOutOfSightToObject|CharacterAppearOutOfSightToObject]]
 
* [[Osiris/API/CharacterAppearOutOfSightToObjectCustom|CharacterAppearOutOfSightToObjectCustom]]
 
* [[Osiris/API/CharacterAppearOutOfSightToObjectCustom|CharacterAppearOutOfSightToObjectCustom]]
 +
* [[Osiris/API/CharacterEnteredRegion|CharacterEnteredRegion]]
 
* [[Osiris/API/SetOnStage|SetOnStage]]
 
* [[Osiris/API/SetOnStage|SetOnStage]]
  
  
 
[[Category:Osiris Calls|CharacterCreateAtTrigger]]
 
[[Category:Osiris Calls|CharacterCreateAtTrigger]]

Latest revision as of 08:55, 27 March 2019

Full Definition(s)
  • call CharacterCreateAtTrigger((TRIGGERGUID)_Trigger, (STRING)_TemplateId, (INTEGER)_PlaySpawn)
Description

Creates a character of the root template defined by _TemplateId (in a <root template name>_<root template UUID> format) at the _Trigger. If _PlaySpawn is 1, the creature will play its spawn animation as it appears.

Notes
See Also