User:Ugleh Ulrik/FirstName

From Second Life Wiki
< User:Ugleh Ulrik
Revision as of 23: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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>