teleport(char_name, navpoint_name[, exit_vehicle[, reset_camera_orient[, offset_x[, offset_y[, offset_z[, check_for_obstacles]]]]]])

Parameters:
char_name (string) name of the character
navpoint_name (string) name of the navpoint
exit_vehicle (boolean, optional) set to true if the player should be removed from any vehicle he is in, or false to teleport the vehicle as well; this parameter is ignored if teleporting an NPC (defaults to false)
reset_camera_orient (boolean, optional) set to false if the camera orient should not be reset during the teleport. (defaults to true)
offset_x (float, optional) amount to offset the human from the navpoint in the x plane. (defaults to 0.0)
offset_y (float, optional) amount to offset the human from the navpoint in the y plane. (defaults to 0.0)
offset_z (float, optional) amount to offset the human from the navpoint in the z plane. (defaults to 0.0)
check_for_obstacles (float, optional) set to true to check for obstacles in the way at the spawn location, false otherwise. Only valid for NPCs. (IF SET TO FALSE, THE HUMAN MAY BE TELEPORTED INTERSECTING WITH ANOTHER OBJECT) (defaults to true)
 
Returns:
none

Description:
Teleport a character to a navpoint.

When teleporting the player, any followers will automatically be teleported along with the player.

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15