Difference between revisions of "LlSetObjectName"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
m (attachment warning was only in llgetobjectdesc) |
||
Line 11: | Line 11: | ||
|spec | |spec | ||
|caveats= | |caveats= | ||
*The name is limited to 63 characters. Longer prim names appeared cut short. | |||
*When an attached object is detached, changes made by script to the name and description (of the root prim) of the attachment will be lost. While the object is attached the name and description can be changed but it will not be reflected in inventory. This caveat does ''not'' apply to child prims. | |||
|constants | |constants | ||
|examples=<lsl>default | |examples=<lsl>default |
Revision as of 19:44, 5 July 2011
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetObjectName( string name );203 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Sets the prim's name according to the name parameter.
• string | name |
If this function is called from a child prim in a linked set, it will change the name of the child prim and not the root prim.
Caveats
- The name is limited to 63 characters. Longer prim names appeared cut short.
- When an attached object is detached, changes made by script to the name and description (of the root prim) of the attachment will be lost. While the object is attached the name and description can be changed but it will not be reflected in inventory. This caveat does not apply to child prims.
Examples
<lsl>default {
state_entry() { string yyyy1mm1dd = llGetDate(); string name = yyyy1mm1dd + " " + llGetObjectName(); llOwnerSay("llSetObjectName(\"" + name + "\")"); llSetObjectName(name); }}</lsl>
See Also
Functions
• | llGetObjectName | – | Get the prims name | |
• | llGetLinkName | – | Get a linked prims name | |
• | llGetObjectDesc | – | Get the prims description | |
• | llSetObjectDesc | – | Set the prims description | |
• | llGetObjectDetails | – | Get a list of object details |
Articles
• | Limits | – | SL limits and constrictions |