User:ANSI Soderstrom/No Script Areas: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
}}...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. If u think u have found a "blacklisted" function, please inform me [[User_talk:{{PAGENAME}}|here]]. | ||
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 do some research with it), and be sure u have attached this Script BEFORE you enter a "No Script"-Area. | ||
<lsl> | <lsl> | ||
Line 23: | Line 23: | ||
if(PERMISSION_TAKE_CONTROLS & perm) | if(PERMISSION_TAKE_CONTROLS & perm) | ||
{ | { | ||
llTakeControls(CONTROL_ML_LBUTTON | 0, | 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"); | ||
} | } |
Latest revision as of 01:45, 31 March 2011
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 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>