Player.teleportToPlayer

From Runsafe
Jump to: navigation, search

Details

Arguments

  • playerName (String) - The name of the player to teleport. [Required]
  • targetPlayer (String) - The name of the target player. [Required]

Returns

  • Nothing.

Usage

engine.player.teleportToPlayer('Kruithne', 'docpify');
engine.player.sendMessage('docpify', 'Here, have a Kruithne');

Notes

  • No effect if either of the players are offline or non-existant.