Difference between revisions of "LlGetStartString"

From Second Life Wiki
Jump to navigation Jump to search
(Added caveat: Start string survives script resets, region crosses and region restarts.)
m (Start string is assigned to the rezzed object's root prim via llRezObjectWithParams.)
Line 5: Line 5:
|func_footnote=
|func_footnote=
*If the containing object was manually rezzed, by dragging from inventory, the start string is blank.
*If the containing object was manually rezzed, by dragging from inventory, the start string is blank.
*If the script calling this function is in a child prim, the start string of the root prim is returned.
*Child prims of objects rezzed via llRezObjectWithParams() have an empty start string.
|func_desc
|func_desc
|return_text=that was passed to the object on rez with [[llRezObjectWithParams]].
|return_text=that was passed to the object's root prim on rez with [[llRezObjectWithParams]].
|spec
|spec
|caveats=
|caveats=

Revision as of 13:47, 8 October 2024

Summary

Function: string llGetStartString( );
0.0 Forced Delay
10.0 Energy

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

  • If the containing object was manually rezzed, by dragging from inventory, the start string is blank.
  • If the script calling this function is in a child prim, the start string of the root prim is returned.
  • Child prims of objects rezzed via llRezObjectWithParams() have an empty start string.

Caveats

  • Start string survives script resets, region crosses and region restarts.

Examples

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

Events

•  on_rez

Functions

•  llRezObjectWithParams
•  llGetStartParameter

Deep Notes

Signature

function string llGetStartString();