Don't click here unless you want to be banned.

LSL Wiki : llOverMyLand

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl809.us.archive.org
integer llOverMyLand(key id)

Returns TRUE if id is over land owned by the script owner, otherwise returns FALSE. This also works for group land, assuming the object is deeded to the group. It will not work if the object is not deeded, not even if owned by a member or officer in the group. The object itself needs to be deeded.

Example:
default {
    touch_start(integer num_detected) {
        // check if the touching person is over the script owner's land
        if (llOverMyLand(llDetectedKey(0))) {
            llSay(0, llDetectedName(0) + " is on my land.");
        }    else {
            llSay(0, llDetectedName(0) + " is NOT on my land.");
        }
    }
}

NOTE: This function may return a false positive on an AV that was just ejected from your land into a neighboring sim. (As of June 10, 2006)

NOTE: The false positive condition may be worked around by performing:
if (llOverMyLand(key agent) && llGetAgentSize(key agent) != ZERO_VECTOR)
llGetAgentInfo() could be used in stead of llGetAgentSize() but there is the risk that it will return a false negative.


Also useful: llGetLandOwnerAt.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Land
Comments [Hide comments/form]
In a group-deeded object (using sensor event), returns TRUE incorrectly when the detected is in a nearby (but in range) sim which is not group owned. Bug report filed.
-- LeonardChurchill (2006-04-24 09:14:25)
Attach a comment to this page: