Osiris/API/CharacterMoveToAndTalk

From Divinity Engine Wiki
Revision as of 22:03, 19 October 2018 by Tinkerer (talk | contribs) (Documented CharacterMoveToAndTalk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call CharacterMoveToAndTalk((CHARACTERGUID)_Character, (GUIDSTRING)_Target, (STRING)_DialogID, (INTEGER)_IsAutomated, (STRING)_MoveID, (INTEGER)_Running, (REAL)_TimeOut)
Description

Causes _Character to start moving to _Target, either walking or running depending on whether _Running is 0 or 1. Once _Character has arrived at its destination, the CharacterMoveToAndTalkRequestDialog event will be thrown with the _Character, _Target, _DialogID, _IsAutomated and _MoveID parameters.

If the _Character does not exist or is dead, if _Target does not eist or is dead/destroyed or is in a different level, or if it takes longer than _TimeOut seconds seconds to reach _Target, a CharacterMoveToAndTalkFailed event will be thrown instead.

Notes
See Also