function
Function syntax
string llGetObjectName();- Returns
string- Energy
- 10
Returns a string that is the name of the prim the script is attached to.
string result = llGetObjectName();Caveats
Section titled “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.
- This function may return “(Waiting)” sometimes. See: notes
Examples
Section titled “Examples”| Get this prim’s name | Get the root prim’s name |
|---|---|
| |
Erroneous “(Waiting)”
Section titled “Erroneous “(Waiting)””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.
See also
Section titled “See also”Functions
Section titled “Functions”llSetObjectName— Set the prims namellGetLinkName— Get a linked prims namellGetObjectDesc— Get the prims descriptionllSetObjectDesc— Sets the prims descriptionllGetObjectDetails
Articles
Section titled “Articles”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.