llGetStartString

From Second Life Wiki
Revision as of 13:47, 8 October 2024 by Lucia Nightfire (talk | contribs) (Start string is assigned to the rezzed object's root prim via llRezObjectWithParams.)
Jump to navigation Jump to search

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();