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.
string result = llGetStartString();Caveats
Section titled “Caveats”- Start string survives script resets, region crosses and region restarts.
Examples
Section titled “Examples”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"); }}See also
Section titled “See also”Functions
Section titled “Functions”Events
Section titled “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.