Skip to content
lsl.devlsl.devLSL Dev

llGetLandOwnerAt

function
Function syntax
key llGetLandOwnerAt(
  1. vector pos// Position vector in region coordinates.
);
Returns
key
Energy
10

Returns the key (UUID) of the land owner at the vector pos, or NULL_KEY if the land is public.

Returns a key that is the land owner at pos.

How to use
key result = llGetLandOwnerAt(ZERO_VECTOR);

If the land is in public domain NULL_KEY is returned. This land can be claimed by anyone with available tier. Land on the Preview grid is divvied out this way. Land on the main grid never enters public domain and is instead auctioned off by LL.

If the land is group-owned, the group key is returned.

Example 1
default {
state_entry() {
//llKey2Name does not work for groups, and it requires avatars to be on sim (owner is not known when absent tested 2019-06-10).
//Actually printing the owner name (also for groups) is somewhat tricky - if you feel otherwise, please update this example.
llOwnerSay("The land owner under this object is " + llKey2Name(llGetLandOwnerAt(llGetPos())) + ".");
}
}

Added in SL 0.6.0

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LlGetLandOwnerAt, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.