Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

detecting if key is empty (handy for detecting if groupland or not)

phoenix Behemoth
Registered User
Join date: 7 Oct 2004
Posts: 14
01-01-2006 20:11
CODE
default
{
state_entry()
{
}

touch_start(integer total_number)
{
string land;
if(llKey2Name(llGetLandOwnerAt(llGetPos())) == "")
{
land = "Group land";
}else
{
land = "land owned by " + llKey2Name(llGetLandOwnerAt(llGetPos()));
}
llSay(0, land);
}
}

hope this is handy for people
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
01-03-2006 06:49
/54/b5/80578/1.html
_____________________
i've got nothing. ;)