Difference between revisions of "LlGetObjectName"

From Second Life Wiki
Jump to navigation Jump to search
(EX)
Line 24: Line 24:
{{LSL DefineRow||[[llGetObjectDesc]]|Get the prims description}}
{{LSL DefineRow||[[llGetObjectDesc]]|Get the prims description}}
{{LSL DefineRow||[[llSetObjectDesc]]|Get the prims description}}
{{LSL DefineRow||[[llSetObjectDesc]]|Get the prims description}}
{{LSL DefineRow||[[llGetObjectDetails]]}}
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles=
{{LSL DefineRow||[[Prim Attribute Overloading]]}}
|notes
|notes
|cat1=Prim
|cat1=Prim

Revision as of 08:51, 30 August 2007

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 255 bytes, any string longer then that will be truncated. This truncation does not always happen when the attribute is set or read.
All Issues ~ Search JIRA for related Bugs

Examples

default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, llGetObjectName() );
    }
}

See Also

Functions

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

Articles

•  Prim Attribute Overloading

Deep Notes

Search JIRA for related Issues

Signature

function string llGetObjectName();