The teleportPlayer native AI script function teleports a player to a specified position, identified by its x, y, z, and heading coordinates.
()teleportPlayer(playerId: s, x: f, y: f, z: f, heading: f) // teleportPlayer_sffff_
($playerId)getRandomPlayerAggroListTarget(0);
()teleportPlayer($playerEid, 1000, 1000, 100, 0);
This example code gets a random player with aggro list target and teleports them to the position (1000, 1000, 100)
with a heading of 0.