Difference between revisions of "Player.teleportToLocation"

From Runsafe
Jump to: navigation, search
(Created page with "== Details == ''Arguments'' * '''playerName''' (String) - The name of the player to teleport. [Required] * '''worldName''' (String) - The name of the world to teleport to. [Re...")
 
(No difference)

Latest revision as of 04:00, 4 June 2013

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.