Osiris/API/CharacterMoveToPosition

From Divinity Engine Wiki
Revision as of 15:50, 21 December 2017 by LarIlya (talk | contribs)
Jump to: navigation, search
Full Definition(s)
  • call CharacterMoveToPosition((CHARACTERGUID)_Character, (REAL)_X, (REAL)_Y, (REAL)_Z,(INTEGER)_Running, (STRING)_Event)
Description

Makes the character walk (if _Running is 0) or run (if _Running is 1) to (_X, _Y, _Z). Once the character arrives there, the event _Event will be sent to _Character. The movement will ignore combat, meaning it will also move out of turn and if out of AP, and will fallback to a teleport if the character fails to reach that point for any reason.

Notes
  • In practice, the _Y coordinate will be ignored and the character will snap to the floor at the destination location. If the destination location is not valid on the AI grid, the game will find a nearby valid location on the AI grid and move the character there.
See Also