llGetStartParameter
function
Function syntax
integer llGetStartParameter();- Returns
integer- Energy
- 10
- If the script was loaded with
llRemoteLoadScriptPinthen that start parameter is returned. - If the containing object was rezzed by
llRezObjectWithParamsorllRezObjectorllRezAtRootthen the return is theon_rezparameter. - If the containing object was manually rezzed, by dragging from inventory, the start parameter is 0.
Returns an integer that is the script start/rez parameter.
integer result = llGetStartParameter();Caveats
Section titled “Caveats”- The start parameter does not survive region restarts (SVC-2251) or region change (SVC-3258, crossing or teleport).
- If the script is reset (using
llResetScriptor other means), the start parameter is set to 0.
Examples
Section titled “Examples”Example 1
6 collapsed lines
default{ on_rez(integer param) { llOwnerSay("rezzed with the number " + (string)param); } state_entry() { integer i = llGetStartParameter(); if (i) {8 collapsed lines
llOwnerSay("I was given the number " + (string)i + " when I was rezzed"); } else { llOwnerSay("rezzed from inventory (or rezzed/loaded with 0)"); } }}Known issues
Section titled “Known issues”SVC-2251: llGetStartParameter returns zero after sim restart
SVC-3258: llGetStartParameter returns zero after change of region
See also
Section titled “See also”Functions
Section titled “Functions”llGetStartString— Modern alternative that allows passing even more data.llRemoteLoadScriptPin— Used to load a script into a remote primllRezObject— Used to rez an object at the center of massllRezAtRoot— Used to rez an object at the root
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.