Last active
August 29, 2015 14:17
-
-
Save neojou/3357ad095f72ff61efb7 to your computer and use it in GitHub Desktop.
linden script for teleport in Second Life.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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