Osiris/API/CharacterAppearOnTrailOutOfSightToObject

From Divinity Engine Wiki
Revision as of 10:00, 26 November 2019 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call CharacterAppearOnTrailOutOfSightToObject((CHARACTERGUID)_Character, (GUIDSTRING)_Target, (GUIDSTRING)_Object, (INTEGER)_PlaySpawn, (STRING)_Event)
Description

Same as CharacterAppearOutOfSightToObject, but _Character will select a position occupied by _Target over the last few seconds (so that if you then make _Character walk to _Target afterwards, it seems as if _Character was following _Target). It will select the furthest cached position of _Target in the direction _Object.

Notes
  • This only works if _Target is a party member, as the last positions are not cached for regular NPCs.
See Also