Player.teleportToPlayer

From Runsafe
Revision as of 03:02, 4 June 2013 by imported>Kruithne (Created page with "== Details == ''Arguments'' * '''playerName''' (String) - The name of the player to teleport. [Required] * '''targetPlayer''' (String) - The name of the target player. [Requir...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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.