Player.teleportToLocation

From Runsafe
Revision as of 04:00, 4 June 2013 by Kruithne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.