Osiris/API/CharacterAppearAt

From Divinity Engine Wiki
Revision as of 17:05, 19 December 2017 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call CharacterAppearAt((CHARACTERGUID)_Character, (GUIDSTRING)_Target, (INTEGER)_PlaySpawn, (STRING)_Event)
Description

_Character, which can currently be off-stage, appears at the position of _Target, snapped to the nearest valid AI-grid position. _Target can be another character, an item or a trigger. 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.
See Also