Jump to content

Object attachment dialog box timer is too short


Raena Parx
 Share

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

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

Recommended Posts

Hello. I'm not a scripter, but I am slowly learning.  I have an object that when rezzed will ask the avatar if they want to attach it..yes/no.  The problem is the dialog box for their response disappears after 6 seconds. I tried using   llSetTimerEvent(60.0);  in various places of the code to make the script wait 60 seconds for a response,  but have not been able to make the dialog box wait longer.  

I'm posting a simple shell of the code below. Can anyone suggest a way to make the dialog box wait longer?  Is the LLSetTimerEvent even the way to go?

Thank you in advance.

Raena Parx :)

----------------------------

default
{
    state_entry()
    {

        llRequestPermissions( llGetOwner(), PERMISSION_ATTACH );
                llSetTimerEvent(60.0);

    }
 
    run_time_permissions( integer vBitPermissions )
    

    {          
        if( vBitPermissions & PERMISSION_ATTACH )

        {
            llAttachToAvatarTemp( ATTACH_LHAND );
        }
        else
        {

         // object never attached
         llOwnerSay("\object not attached");
        
        }
    }
 
    on_rez(integer rez)
    {
        if(!llGetAttached())
        {
            //reset the script if it's not attached.
            llResetScript();

        }
    }
 
    attach(key AvatarKey)
    {
        if(AvatarKey)
        {
            integer test = llGetAttached();
            if (test) {
                //object is attached
                llResetScript();
           } else {
                //object is not attached");
           }
        }
    }


//state_exit()
//    {
     //Exit script - not sure if this is necessary
//    }
    
timer()
   {
    //Time ran out (timed out) - object never attached

    llOwnerSay("\nTime has run out.");

    // Stop the timer now that its job is done
    llSetTimerEvent(0.0);   // you can use 0 as well to save memory

    }
    
}

 

 

Link to comment
Share on other sites

The request dialog which you get when a script requests permission from you is controlled by your viewer, not the script. (I don't recall if there's a setting to adjust the timer for it.)

The request dialog doesn't close either, it just gets minimized to the "notification chiclet" in the top-right corner of your viewer.

e1d2009c1d.png

You can click it to bring the request dialog back.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1184 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...