User:ANSI Soderstrom/No Script Areas: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
|mode=note | |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. | |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]]. | ||
...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. | Simply add following code in your Script, and be sure u have attached this Script BEFORE you enter a "No Script"-Area. |
Revision as of 06:04, 8 April 2010
Leave a comment
All About : No Script Areas
Belong to the Note in llTakeControls... :
...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 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(0, TRUE, TRUE); llOwnerSay("I am be able to work in \"No Script\"-Areas"); } }
// further code and events ...
} </lsl>