From Second Life Wiki
|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
Triggered when an object is rezzed (by script or by user). Also triggered in attachments when a user logs in, or when the object is attached from inventory.
|• integer||start_param||–||parameter supplied to llRezObject or llRezAtRoot|
start_param is always zero when an object is not rezzed by llRezObject or llRezAtRoot.
When an object is rezzed by llRezObject or llRezAtRoot, then start_param will be the value given as the last parameter of the rezzing command.
start_param is available at any subsequent time by calling llGetStartParameter (unless it has been overridden by llRemoteLoadScriptPin).
state_entry & on_rez
on_rez & attach
on_rez will be triggered prior to attach when attaching from inventory or during login.
on_rez & slow events
If the script was already processing an event at rez time, on_rez does not not trigger until the current event handler is completed. (same with attach)