Player.teleportToLocation

From Runsafe
Jump to: navigation, search

Details

Arguments

  • playerName (String) - The name of the player to teleport. [Required]
  • worldName (String) - The name of the world to teleport to. [Required]
  • x (Double) - The X co-ordinate. [Required]
  • y (Double) - The Y co-ordinate. [Required]
  • z (Double) - The Z co-ordinate. [Required]

Returns

  • Nothing.

Usage

engine.player.teleportToLocation('Kruithne', 'development', 40, 70, 40);
engine.player.sendMessage('Kruithne', 'You are being teleported!');

Notes

  • Has no effect if the world does not exist.
  • Nothing happens if the player is offline.