User:Ugleh Ulrik/LastName
Jump to navigation
Jump to search
Function to get the persons last name only.
Function
<lsl>
string LastName (key k){
list ln = llParseString2List(llKey2Name(k),[" "],[]);
string lastn = llList2String(ln,1);
return lastn;
}
</lsl>
Example <lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,1); return lastn; }
default {
touch_start(integer total_number) { llSay(0, LastName(llGetOwner())); }
} </lsl>