Difference between revisions of "TeleportEntity"
From Nomad DB
m |
m |
||
Line 1: | Line 1: | ||
− | + | Teleports the target entity to the destination entity. | |
== Syntax == | == Syntax == | ||
Line 5: | Line 5: | ||
TeleportEntity(targetEntityId, destinationEntityId, useLoadingScreen, useFadeToBlack) | TeleportEntity(targetEntityId, destinationEntityId, useLoadingScreen, useFadeToBlack) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * '''targetEntityId''' (string): [[EntityId|ID]] of the entity to | + | * '''targetEntityId''' (string): [[EntityId|ID]] of the entity to be teleported |
* '''destinationEntityId''' (string): [[EntityId|ID]] of the entity to teleport to | * '''destinationEntityId''' (string): [[EntityId|ID]] of the entity to teleport to | ||
* '''useLoadingScreen''' (boolean): Whether to show a loading screen if the player teleports into a new map area | * '''useLoadingScreen''' (boolean): Whether to show a loading screen if the player teleports into a new map area |
Revision as of 17:04, 15 April 2020
Teleports the target entity to the destination entity.
Syntax
TeleportEntity(targetEntityId, destinationEntityId, useLoadingScreen, useFadeToBlack)
- targetEntityId (string): ID of the entity to be teleported
- destinationEntityId (string): ID of the entity to teleport to
- useLoadingScreen (boolean): Whether to show a loading screen if the player teleports into a new map area
- useFadeToBlack (boolean): Whether to use a fade to black animation before teleporting the player
Example
TeleportEntity(GetLocalPlayerEntityId(), "2083162933598368435", 0, 0)