Raena Parx Posted December 30, 2020 Share Posted December 30, 2020 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 More sharing options...
Wulfie Reanimator Posted December 30, 2020 Share Posted December 30, 2020 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. You can click it to bring the request dialog back. 1 Link to comment Share on other sites More sharing options...
Raena Parx Posted December 30, 2020 Author Share Posted December 30, 2020 Ooooooh. Thank you Wulfie. That's good to know. At least I can put in the readme that if it disspears to check the minimized notices. Thank you so much. That helps a lot! 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