Difference between revisions of "LlGetStartParameter"

From Second Life Wiki
Jump to navigation Jump to search
m (formatted example)
Line 12: Line 12:
|constants
|constants
|examples=
|examples=
<Pre>
<lsl>
default
default
{
{
Line 32: Line 32:
     }
     }
}
}
</Pre>
</lsl>
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 19:09, 19 February 2008

Summary

Function: integer llGetStartParameter( );

Returns an integer that is the script start/rez parameter.

Examples

<lsl> 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");
       }
   }

}

</lsl>

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

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetStartParameter();