Difference between revisions of "LlSetObjectName"

From Second Life Wiki
Jump to navigation Jump to search
m (Added Example)
Line 12: Line 12:
|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.
|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.
|constants
|constants
|examples
|examples=<pre>
default
{
    state_entry()
    {
        llSetObjectName("Object X");
    }
}
</pre>
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 01:09, 31 August 2007

Summary

Function: llSetObjectName( string name );
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()
    {
        llSetObjectName("Object X");
    }
}

See Also

Functions

•  llGetObjectName Get the prims name
•  llGetLinkName Get a linked prims name
•  llGetObjectDesc Get the prims description
•  llSetObjectDesc Set the prims description

Deep Notes

Signature

function void llSetObjectName( string name );