From Second Life Wiki
GetObjectName
llGetObjectName
Summary
Function: string llGetObjectName( );
Returns a string that is the name of the prim the script is attached to.
Caveats
- The prim name is limited to 63 bytes, any string longer than that will be truncated. This truncation does not always happen when the attribute is set or read.
 |
Important: This function does not get the name of the object's rootprim, but the name of the prim containing the script. Please use llGetLinkName(LINK_ROOT); instead. |
All Issues ~
Search JIRA for related Bugs
Notes
- This function may return "(Waiting)" sometimes.
Presumably the function queries the asset server for a predetermined time and returns "(Waiting)" if that elapses.
It then silently proceeds to the next instruction.
A work around therefore, might be to test object name is not "(Waiting)" after calling llGetObjectName.