Difference between revisions of "Osiris/API/CharacterMoveTo"

From Divinity Engine Wiki
Jump to: navigation, search
m
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
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 event '''_Event''' will be raised for '''_Character'''. If '''_IncreaseSpeed''' is '''1''', '''_Character''' will starting moving increasingly faster the longer it has been moving.
 
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 event '''_Event''' will be raised for '''_Character'''. If '''_IncreaseSpeed''' is '''1''', '''_Character''' will starting moving increasingly faster the longer it has been moving.
 
===== Notes =====
 
===== Notes =====
* If '''_Target''' is unreachable, '''_Character''' may teleport there.
+
* See the notes of [[Osiris/API/CharacterMoveToPosition|CharacterMoveToPosition]] for usage details.
* '''_Character''' will not participate in combats while it is moving.
 
* If a player starts a conversation with '''_Character''', '''_Character''' will not stop and just keep moving.
 
* Use '''ProcCharacterMoveTo''' to avoid the problems mentioned above and several others, except for not participating in combat.
 
* Use '''ProcStateManagerCharacterMoveTo''' if you also want the character to join combats it encounters on its way.
 
* Use '''[[Osiris/API/CharacterLookFromTrigger|CharacterLookFromTrigger]]''' or '''[[Osiris/API/CharacterLookAt|CharacterLookAt]]''' if the character needs to look in a specific direction upon arrival.
 
 
===== See Also =====
 
===== See Also =====
 +
* [[Osiris/API/CharacterFlushQueue|CharacterFlushQueue]]
 +
* [[Osiris/API/CharacterLookFromTrigger|CharacterLookFromTrigger]]
 +
* [[Osiris/API/CharacterMoveToPosition|CharacterMoveToPosition]]
 +
* [[Osiris/API/CharacterPurgeQueue|CharacterPurgeQueue]]
 +
* [[Osiris/API/ItemMoveToTrigger|ItemMoveToTrigger]]
 
* [[Osiris/API/StoryEvent|StoryEvent]]
 
* [[Osiris/API/StoryEvent|StoryEvent]]
* [[Osiris/API/CharacterMoveToPosition|CharacterMoveToPosition]]
+
* [[Osiris/API/TeleportTo|TeleportTo]]
* [[Osiris/API/CharacterLookFromTrigger|CharacterLookFromTrigger]]
 
 
* Helper [[Osiris/Shared/ProcCharacterMoveTo|ProcCharacterMoveTo]]
 
* Helper [[Osiris/Shared/ProcCharacterMoveTo|ProcCharacterMoveTo]]
 
* Helper [[Osiris/Shared/ProcStateManagerCharacterMoveTo|ProcStateManagerCharacterMoveTo]]
 
* Helper [[Osiris/Shared/ProcStateManagerCharacterMoveTo|ProcStateManagerCharacterMoveTo]]
  
 
[[Category:Osiris Calls|CharacterMoveTo]]
 
[[Category:Osiris Calls|CharacterMoveTo]]

Latest revision as of 14:46, 1 July 2018

Full Definition(s)
  • call CharacterMoveTo((CHARACTERGUID)_Character, (GUIDSTRING)_Target, (INTEGER)_Running, (STRING)_Event, (INTEGER)_IncreaseSpeed)
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 event _Event will be raised for _Character. If _IncreaseSpeed is 1, _Character will starting moving increasingly faster the longer it has been moving.

Notes
See Also