Skip to content
lsl.devlsl.devLSL Dev

llGetScriptName

function
Function syntax
string llGetScriptName();
Returns
string
Energy
10

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

How to use
string result = llGetScriptName();
Remove the current script from the object
default
{
state_entry()
{
llRemoveInventory(llGetScriptName());
}
}