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

LSL Wiki : llOverMyLand

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
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.

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
There is one comment on this page. [Display comments/form]