User:Ugleh Ulrik/FirstName
< User:Ugleh Ulrik
Jump to navigation
Jump to search
Revision as of 22:13, 19 April 2010 by Ugleh Ulrik (talk | contribs) (Created page with 'Function to get the persons First name only. '''Function''' <lsl> string FirstName(key k){ list fn = llParseString2List(llKey2Name(k),[" "],[]); string firstn = llList2String(f...')
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>