Difference between revisions of "User:ANSI Soderstrom/No Script Areas"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Belong to the Note in [[llTakeControls]] it seems that its possible to override "No Script"-Areas.
== Leave a comment ==
* [[User_talk:{{PAGENAME}}|My User Talk about this Page]]


Simply add following code in your Script, and be sure u have attached this Script BEFORE you enter a "No Script"-Area.
== All About : No Script Areas ==
Belong to the Note in [[llTakeControls]]... :
{{hint
|mode=note
|desc=If a script has taken controls, it and other scripts in the same prim will not be stopped if the Agent enters a No-Script Area. This is done to keep vehicle control alive and AOs functional. This is an intentional feature. These scripts will stop working if they call certain blacklisted functions.
}}...it seems that its possible to override "No Script"-Areas. If u think u have found a "blacklisted" function, please inform me [[User_talk:{{PAGENAME}}|here]].
 
Simply add following code in your Script (and do some research with it), and be sure u have attached this Script BEFORE you enter a "No Script"-Area.


<lsl>
<lsl>
Line 10: Line 18:
         llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
         llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
     }
     }
     run_time_permissions(integer perm)
     run_time_permissions(integer perm)
     {
     {
         if(PERMISSION_TAKE_CONTROLS & perm)
         if(PERMISSION_TAKE_CONTROLS & perm)
         {
         {
             llTakeControls(0, TRUE, TRUE);
             llTakeControls(CONTROL_ML_LBUTTON | 0, FALSE, FALSE);
             llOwnerSay("I am be able to work in \"No Script\"-Areas");
             llOwnerSay("I am be able to work in \"No Script\"-Areas");
         }
         }
     }
     }
    // further code and events ...
}
}
</lsl>
</lsl>

Latest revision as of 01:45, 31 March 2011

Leave a comment

All About : No Script Areas

Belong to the Note in llTakeControls... :

Emblem-important-yellow.png Note!

If a script has taken controls, it and other scripts in the same prim will not be stopped if the Agent enters a No-Script Area. This is done to keep vehicle control alive and AOs functional. This is an intentional feature. These scripts will stop working if they call certain blacklisted functions.

...it seems that its possible to override "No Script"-Areas. If u think u have found a "blacklisted" function, please inform me here.

Simply add following code in your Script (and do some research with it), and be sure u have attached this Script BEFORE you enter a "No Script"-Area.

<lsl> default {

   state_entry()
   {
       llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
   }
   run_time_permissions(integer perm)
   {
       if(PERMISSION_TAKE_CONTROLS & perm)
       {
           llTakeControls(CONTROL_ML_LBUTTON | 0, FALSE, FALSE);
           llOwnerSay("I am be able to work in \"No Script\"-Areas");
       }
   }
   // further code and events ...

} </lsl>