Guest User

Untitled

a guest
Jan 14th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Gets proper name of a key since objects don't have display names.
  2.  
  3. string getProperName(key id)
  4. {
  5.     if(llGetOwnerKey(id) == llGetOwner()) // only agents own themselves
  6.     {
  7.         return llGetDisplayName(id);
  8.     }
  9.     else // otherwise id must be an object.
  10.     {
  11.         return llKey2Name(id);
  12.     }
  13. }
Add Comment
Please, Sign In to add comment