Difference between revisions of "LlSetObjectName"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
(The note was inaccurate, it was confusing the definition of object with prim.) |
(grow example to "$yyyy-$mm-$dd $Object" from "Object X") |
||
Line 17: | Line 17: | ||
state_entry() | state_entry() | ||
{ | { | ||
llSetObjectName(" | string yyyy1mm1dd = llGetDate(); | ||
string name = yyyy1mm1dd + " " + llGetObjectName(); | |||
llOwnerSay("llSetObjectName(\"" + name + "\")"); | |||
llSetObjectName(name); | |||
} | } | ||
} | } |
Revision as of 04:42, 16 October 2007
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 |
Limited to 63 bytes by the client
Caveats
- The prim name is limited to 255 bytes, any string longer then that will be truncated. This truncation does not always happen when the attribute is set or read.
Examples
default { state_entry() { string yyyy1mm1dd = llGetDate(); string name = yyyy1mm1dd + " " + llGetObjectName(); llOwnerSay("llSetObjectName(\"" + name + "\")"); llSetObjectName(name); } }
See Also
Functions
• | llGetObjectName | – | Get the prims name | |
• | llGetLinkName | – | Get a linked prims name | |
• | llGetObjectDesc | – | Get the prims description | |
• | llSetObjectDesc | – | Set the prims description |