Osiris/Shared/ProcStateManagerCharacterMoveTo

From Divinity Engine Wiki
Revision as of 14:56, 8 August 2017 by Tinkerer (talk | contribs) (Osiris Helper Mod APIs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • PROC ProcStateManagerCharacterMoveTo'((CHARACTERGUID)_Char,'(GUIDSTRING)_Destination,(INTEGER)_Running,(REAL)_MinDist,(STRING)_Event,(STRING)_AfterArrivalState)
Description

Uses a behaviour script's CharacterMoveTo to move _Char to _Destination (can be a character, item or trigger). _Running can be 0 or 1 to indicate walking resp. running. _MinDist indicates the minimum distance between _Char and _Destination before the routine can assume that _Char has arrived. If _Event is a non-empty string, a Character Event will be raised for _Char once it arrives. _AfterArrivalState specifies the state to which the character should go when it arrives (can be an empty string to disable the state manager afterwards).

Return Values
  • /
Notes
  • This routine requires that the State_Manager_GoTo character script has been assigned to _Char
  • This routine can be used instead of the regular ProcCharacterMoveTo() if you want a character to join combats it encounters on its way.
  • Preferably always use this routine or ProcCharacterMoveTo instead of CharacterMoveTo
See Also