Difference between revisions of "Osiris/API/CharacterMoveToPosition"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * call '''CharacterMoveToPosition'''(''(CHARACTERGUID)'''''_Character''', ''(REAL)'''''_X''', ''(REAL)'''''_Y''', ''(REAL)'''''_Z''',''(INTEGER)...")
 
Line 7: Line 7:
  
 
===== See Also =====
 
===== See Also =====
* [[Osiris/API/TeleportTo|MoveTo]]
+
* [[Osiris/API/CharacterMoveTo|CharacterMoveTo]]
 
* [[Osiris/API/TeleportTo|TeleportTo]]
 
* [[Osiris/API/TeleportTo|TeleportTo]]
 
* [[Osiris/API/TeleportTo|TeleportToPosition]]
 
* [[Osiris/API/TeleportTo|TeleportToPosition]]
  
 
[[Category:Osiris Calls|CharacterMoveToPosition]]
 
[[Category:Osiris Calls|CharacterMoveToPosition]]

Revision as of 14:50, 21 December 2017

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