Difference between revisions of "Osiris/API/TeleportTo"

From Divinity Engine Wiki
Jump to: navigation, search
(Document teleporto)
 
m
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
* You can teleport objects from other levels (except for triggers) if they are global.
 
* You can teleport objects from other levels (except for triggers) if they are global.
 
* You can teleport objects that are [[Osiris/API/SetOnStage|off-stage]].
 
* You can teleport objects that are [[Osiris/API/SetOnStage|off-stage]].
 +
* You cannot use this command to teleport players to another level; use [[Osiris/API/CharacterTeleportPartiesToTrigger|CharacterTeleportPartiesToTrigger]] instead.
 
===== See Also =====
 
===== See Also =====
 +
* [[Osiris/API/CharacterMoveTo|CharacterMoveTo]]
 +
* [[Osiris/API/ItemMoved|ItemMoved]]
 +
* [[Osiris/API/ItemDragToTrigger|ItemDragToTrigger]]
 +
* [[Osiris/API/ItemMoveToTrigger|ItemMoveToTrigger]]
 +
* [[Osiris/API/ItemTemplateMoved|ItemTemplateMoved]]
 +
* [[Osiris/API/StoryEvent|StoryEvent]]
 
* [[Osiris/API/TeleportToPosition|TeleportToPosition]]
 
* [[Osiris/API/TeleportToPosition|TeleportToPosition]]
  
[[Category:Osiris Calls]]
+
[[Category:Osiris Calls|TeleportTo]]

Latest revision as of 22:44, 1 July 2018

Full Definition(s)
  • call TeleportTo((GUIDSTRING)_SourceObject, (GUIDSTRING)_TargetObject, (STRING)_Event, (INTEGER)_TeleportLinkedCharacters)
Description

Teleports the object _SourceObject to the location of _TargetObject. Once the object arrives there, the event _Event will be sent to _SourceObject. If _SourceObject is a player character and _TeleportLinkedCharacters is 1, then all characters currently chained to _SourceObject will also be teleported.

Notes
  • _SourceObject can be a character or an item. There is also limited, experimental support for triggers, as long as you do not teleport them out of their original level.
  • You can teleport objects from other levels (except for triggers) if they are global.
  • You can teleport objects that are off-stage.
  • You cannot use this command to teleport players to another level; use CharacterTeleportPartiesToTrigger instead.
See Also