Skip to content
lsl.devlsl.devLSL Dev

llGetStartString

function
Function syntax
string llGetStartString();
Returns
string
Energy
10
  • 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. Returns the initialization string passed to the object’s root prim on rez with llRezObjectWithParams (via REZ_PARAM_STRING; returns an empty string if rezzed by an agent).

Returns a string that was passed to the object’s root prim on rez with llRezObjectWithParams.

How to use
string result = llGetStartString();
  • Start string survives script resets, region crosses and region restarts.
Example 1
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");
}
}
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.

From the Second Life Wiki

Community documentation adapted from LlGetStartString, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.