Difference between revisions of "Osiris/API/CharacterAppear"
From Divinity Engine Wiki
(Osiris Core APIs) |
m |
||
Line 2: | Line 2: | ||
* call '''CharacterAppear'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_PlaySpawn''', ''(STRING)'''''_Event''') | * call '''CharacterAppear'''(''(CHARACTERGUID)'''''_Character''', ''(INTEGER)'''''_PlaySpawn''', ''(STRING)'''''_Event''') | ||
===== Description ===== | ===== Description ===== | ||
− | + | '''_Character''', which can currently be off-stage, appears at its current position. If '''_PlaySpawn''' is 1, the character-specific spawn animation is played. Once the character has appeared on stage (and finished playing its spawning animation if requested), '''_Event''' is raised for '''_Character'''. | |
===== Notes ===== | ===== Notes ===== | ||
* This routine does '''not''' work if '''_Character''' is dead. Use '''SetOnStage''' instead for such characters. | * This routine does '''not''' work if '''_Character''' is dead. Use '''SetOnStage''' instead for such characters. |
Revision as of 21:03, 9 August 2017
Full Definition(s)
- call CharacterAppear((CHARACTERGUID)_Character, (INTEGER)_PlaySpawn, (STRING)_Event)
Description
_Character, which can currently be off-stage, appears at its current position. If _PlaySpawn is 1, the character-specific spawn animation is played. Once the character has appeared on stage (and finished playing its spawning animation if requested), _Event is raised for _Character.
Notes
- This routine does not work if _Character is dead. Use SetOnStage instead for such characters.
- Tip: set a character off-stage and teleport it to its desired position before calling this routine.