LlOverMyLand
From Second Life Wiki
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
Contents |
Description
Function: integer llOverMyLand( key id );| 215 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns an integer boolean, TRUE if id is over land owned by the script owner, FALSE otherwise.
| • key | id | – | avatar or object UUID that is in the same region |
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.)
Examples
//--// private land message //--// //-- @@ = Contains code optimizations, see the following page for details //-- http://wiki.secondlife.com/wiki/User_talk:Void_Singer#Coding_Practices_Part_2_.28optimizations.29 //-- 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," + " unless they're in your ignore list." ); 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 )) //-- @@ x 2 { //-- 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)
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

