Difference between revisions of "TeleportEntity"
From Nomad DB
Wasdennnoch (talk | contribs) (Created page with "Set the entity position of one entity to be the same as the position of another entity. == Syntax == <syntaxhighlight lang="lua"> TeleportEntity(targetEntityId, destinationEn...") |
m |
||
Line 5: | Line 5: | ||
TeleportEntity(targetEntityId, destinationEntityId, useLoadingScreen, useFadeToBlack) | TeleportEntity(targetEntityId, destinationEntityId, useLoadingScreen, useFadeToBlack) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | * '''targetEntityId''' ([[EntityId]] | + | * '''targetEntityId''' (string): [[EntityId|ID]] of the entity to teleport |
− | * '''destinationEntityId''' ([[EntityId]] | + | * '''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 | ||
− | * '''useFadeToBlack''' (boolean): Whether to use a fade to black | + | * '''useFadeToBlack''' (boolean): Whether to use a fade to black animation before teleporting the player |
== Example == | == Example == |
Revision as of 19:41, 14 April 2020
Set the entity position of one entity to be the same as the position of another entity.
Syntax
TeleportEntity(targetEntityId, destinationEntityId, useLoadingScreen, useFadeToBlack)
- targetEntityId (string): ID of the entity to teleport
- 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)