LlGetStartString
Looking for the current API? Open the llGetStartString reference →
Function notes
- If the containing object was manually rezzed, by dragging from inventory, the start string is blank.
- This function reads the start string of the object's root prim.
- Child prims of objects rezzed via llRezObjectWithParams() have an empty start string.
Return value notes
Returns a string that was passed to the object's root prim on rez with llRezObjectWithParams.
Caveats
- Start string survives script resets, region crosses and region restarts.
Examples
default
{
on_rez(integer param)
{
llOwnerSay("rezzed with the number " + (string)param + " and a start string of \"" + llGetStartString() + "\"");
}
state_entry()
{
string s = llGetStartString();
llOwnerSay("I was given the string \"" + s + "\" when I was rezzed");
}
}See also: functions
See also: events
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.