Skip to content
lsl.devlsl.devLSL Dev

LlGetScriptName

Looking for the current API? Open the llGetScriptName reference →

Return value notes

Returns a string that is the name of the script that called this function.

Examples

Remove the current script from the object
default
{
    state_entry()
    {
        llRemoveInventory(llGetScriptName());
    }
}

Known issues

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.