Difference between revisions of "LlOverMyLand"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
|func_footnote=On group {{HoverText|deeded|owned}} land the object containing the script must be deeded to the same group. (It is not enough to set the script to the group.) | |func_footnote=On group {{HoverText|deeded|owned}} land the object containing the script must be deeded to the same group. (It is not enough to set the script to the group.) | ||
|func_desc | |func_desc | ||
|return_text={{HoverText|boolean|TRUE or FALSE}}, {{LSL Const|TRUE|integer|1}} if '''id ''' is over land owned by the script owner, FALSE otherwise. | |return_text={{HoverText|boolean|TRUE or FALSE}}, {{LSL Const|TRUE|integer|1}} if '''id ''' is over land owned by the script owner, {{LSL Const|FALSE|integer|0}} otherwise. | ||
|spec | |spec | ||
|caveats | |caveats |
Revision as of 10:18, 15 October 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llOverMyLand( key id );215 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer boolean, TRUE if id is over land owned by the script owner, FALSE otherwise.
• key | id |
On group deeded land the object containing the script must be deeded to the same group. (It is not enough to set the script to the group.)
Caveats
Examples
//--// private land message //--// //-- list of people not to pester, lower case only list vgLstIgnore = ["void singer"]; default { state_entry() { llOwnerSay( "I'll pester anyone on your land I can find," + " 'less they're in your ignore list or a linden" ); llSensorRepeat( "", "", AGENT, 96, PI, 30 ); } sensor( integer vIntFound ) { integer vIntCounter = 0; do{ string vStrName = llToLower( llDetectedName( vIntCounter ) ); //-- if they are over our land, check 'em if (llOverMyLand( llDetectedKey( vIntCounter ) )) { //-- don't pester people in the ignore list if (!~llListFindList( vgLstIgnore, (list)vStrName )) { //-- don't pester lindens, they might get testy //-- note the space, can't be faked that I know of! if (!~llSubStringIndex( vStrName, " linden" )) { //-- pester everyone else !!! llInstantMessage( llDetectedKey( vIntCounter ), "You are on private land, please leave this parcel" ); } } } }while (++vIntCounter < vIntFound); } }Void Singer 02:04, 15 October 2007 (PDT)