Osiris/API/CharacterCreateAtTrigger: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
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''' (in a <root template name>_<root template UUID> format)
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.
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.

Revision as of 10:21, 20 December 2017