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