Skip to content

Instantly share code, notes, and snippets.

@neojou
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neojou/3357ad095f72ff61efb7 to your computer and use it in GitHub Desktop.
Save neojou/3357ad095f72ff61efb7 to your computer and use it in GitHub Desktop.
linden script for teleport in Second Life.
key teleportee;
default
{
state_entry()
{
//llSay(0, "Touch to teleport");
}
touch_start(integer total_num)
{
teleportee = llDetectedKey(0);
llRequestPermissions(teleportee, PERMISSION_TELEPORT);
}
run_time_permissions(integer perm)
{
if(PERMISSION_TELEPORT & perm)
{
llTeleportAgent(teleportee, "", <36,55,22>, <0, 0, 0>);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment