Difference between revisions of "LlGetLandOwnerAt"
Jump to navigation
Jump to search
(Added Example) |
|||
Line 7: | Line 7: | ||
|func_desc | |func_desc | ||
|return_text=that is the land owner at '''pos'''. | |return_text=that is the land owner at '''pos'''. | ||
|spec=If the land is in public domain | |spec=If the land is in public domain {{LSL Const|NULL_KEY|key|"00000000-0000-0000-0000-000000000000"|c=Evaluates to false in conditionals just like invalid keys.}} 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 (but this isn't usable for anything, since group keys cannot be used by other functions in LSL). | If the land is [[group]]-owned, the group key is returned (but this isn't usable for anything, since group keys cannot be used by other functions in LSL). |
Revision as of 08:34, 12 November 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: key llGetLandOwnerAt( vector pos );216 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a key that is the land owner at pos.
• vector | pos | – | region coordinate |
Specification
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 (but this isn't usable for anything, since group keys cannot be used by other functions in LSL).
Caveats
Examples
default { state_entry() { llOwnerSay("The land owner over this object is " + llKey2Name(llGetLandOwnerAt(llGetPos())) + "."); } }