childhoodbestfriend489 Posted February 26, 2021 Share Posted February 26, 2021 The script isn't being reset if permission not accepted, rather tping to Region center. Near the end of script... key teleportee; default { state_entry() { llSay(0, "Touch to teleport"); } touch_start(integer total_num) { teleportee = llDetectedKey(0); llRequestPermissions(teleportee, PERMISSION_TELEPORT | PERMISSION_TRACK_CAMERA); } run_time_permissions(integer perm) { if(PERMISSION_TELEPORT & perm | PERMISSION_TRACK_CAMERA) { vector CamPos = llGetCameraPos(); llTeleportAgent(teleportee, "", CamPos, <0, 0, 0>); } else { llResetScript(); } } } Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted February 26, 2021 Share Posted February 26, 2021 (edited) if (PERMISSION_TELEPORT & perm || PERMISSION_TRACK_CAMERA & perm) or if (perm & (PERMISSION_TELEPORT | PERMISSION_TRACK_CAMERA)) Edited February 26, 2021 by Wulfie Reanimator 1 Link to comment Share on other sites More sharing options...
childhoodbestfriend489 Posted February 26, 2021 Author Share Posted February 26, 2021 Thanks Wulfie Reanimator, problem solved. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now