AppearAtPosition
Description
_Character
, which can currently be off-stage, appears at the position (_X
, _Y
, _Z
), snapped to the nearest valid AI-grid 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
.
Further Information
This does not work if _Character
is dead. Use call SetOnStage instead for such characters.
Full Definitions
call AppearAtPosition((CHARACTER)_Character, (REAL)_X, (REAL)_Y, (REAL)_Z, (INTEGER)_PlaySpawn, (ANIMATION)_CustomSpawnAnimation, (STRING)_AppearedEvent, (INTEGER)_PreventTeleportOnFailure)
Example(s)
IF DialogEnded((DIALOGRESOURCE)_Helm_DragonAppears, _) AND DB_TUT_Helm_Devils((CHARACTER)_Devil) AND GetPosition(_Devil, _X, _Y, _Z) THEN AppearAtPosition(_Devil, _X, _Y, _Z, 1, (ANIMATION)_CUST_ImpDrop_01, "");