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

From Second Life Wiki
Jump to navigation Jump to search
Created page with 'Belong to the Note in llTakeControls it seems that its possible to override "No Script"-Areas.'
 
No edit summary
Line 1: Line 1:
Belong to the Note in [[llTakeControls]] it seems that its possible to override "No Script"-Areas.
Belong to the Note in [[llTakeControls]] it seems that its possible to override "No Script"-Areas.
Simply add following code in your Script, and be sure u have attached this Script BEFORE you enter a "No Script"-Area:
If u want that this Script should work in "No Script"-Areas too :
<lsl>
default
{
    state_entry()
    {
        llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
    }
    run_time_permissions(integer perm)
    {
        if(PERMISSION_TAKE_CONTROLS & perm)
        {
            llTakeControls(0, TRUE, TRUE);
            llOwnerSay("I am be able to work in \"No Script\"-Areas");
        }
    }
}
</lsl>

Revision as of 05:39, 8 April 2010

Belong to the Note in llTakeControls it seems that its possible to override "No Script"-Areas.

Simply add following code in your Script, and be sure u have attached this Script BEFORE you enter a "No Script"-Area: If u want that this Script should work in "No Script"-Areas too :

<lsl> default {

   state_entry()
   {
       llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
   }
   run_time_permissions(integer perm)
   {
       if(PERMISSION_TAKE_CONTROLS & perm)
       {
           llTakeControls(0, TRUE, TRUE);
           llOwnerSay("I am be able to work in \"No Script\"-Areas");
       }
   }

} </lsl>