Difference between revisions of "LlGetStartParameter"
Jump to navigation
Jump to search
Core Taurog (talk | contribs) |
|||
Line 11: | Line 11: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples= | ||
<Pre> | |||
default | |||
{ | |||
on_rez(integer param) | |||
{ | |||
llOwnerSay("rezzed with the number " + (string)param); | |||
} | |||
state_entry() | |||
{ | |||
integer i = llGetStartParameter(); | |||
if (i == 0) | |||
{ | |||
llOwnerSay("rezzed from inventory (or llRezObject with 0)"); | |||
} | |||
else | |||
{ | |||
llOwnerSay("I was given the number " + (string)i + " when I was rezzed"); | |||
} | |||
} | |||
} | |||
</Pre> | |||
|helpers | |helpers | ||
|also_functions= | |also_functions= |
Revision as of 05:54, 27 September 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetStartParameter( );134 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the script start/rez parameter.
- If the script was loaded with llRemoteLoadScriptPin then that start parameter is returned.
- If the containing object was rezzed by llRezObject or llRezAtRoot then the return is the on_rez parameter.
Caveats
Examples
default { on_rez(integer param) { llOwnerSay("rezzed with the number " + (string)param); } state_entry() { integer i = llGetStartParameter(); if (i == 0) { llOwnerSay("rezzed from inventory (or llRezObject with 0)"); } else { llOwnerSay("I was given the number " + (string)i + " when I was rezzed"); } } }
See Also
Events
• | on_rez |
Functions
• | llRemoteLoadScriptPin | – | Used to load a script into a remote prim | |
• | llRezObject | – | Used to rez an object at the center of mass | |
• | llRezAtRoot | – | Used to rez an object at the root |