Jump to content

SLS_Help_Post_4


childhoodbestfriend489
 Share

You are about to reply to a thread that has been inactive for 1293 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

You are about to reply to a thread that has been inactive for 1293 days.

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
 Share

×
×
  • Create New...