Difference between revisions of "On rez"

From Second Life Wiki
Jump to navigation Jump to search
(added details for on_rez event)
Line 1: Line 1:
{{LSL_Event
{{LSL_Event
|event_id=27|event_delay|event=on_rez
|event_id=27|event_delay|event=on_rez
|p1_type=integer|p1_name=start_param|p1_desc
|p1_type=integer|p1_name=start_param|p1_desc=parameter supplied to [[llRezObject]] or [[llRezAtRoot]]
|event_desc=Triggered when an object is rezzed from inventory or from a prim (by a script). Also triggered in an attachment when a user logs in with it attached or when a user attaches it.  
|event_desc=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 [[attach]]ed from inventory.
 
|event_footnote='''start_param''' is always zero when an object is not rezzed by [[llRezObject]] or [[llRezAtRoot]]. <br/>'''start_param''' is available at any subsequent time by calling [[llGetStartParameter]] (unless it has been overridden by [[llRemoteLoadScriptPin]]).
The start parameter is zero when an object is rezzed from a user's inventory. Otherwise it is the parameter supplied to [[llRezObject]] or [[llRezAtRoot]]. The start parameter is available at any subsequent time by calling [[llGetStartParameter]].
|constants
|constants
|spec
|spec

Revision as of 06:15, 20 March 2007

Description

Event: on_rez( integer start_param ){ ; }

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.
start_param is available at any subsequent time by calling llGetStartParameter (unless it has been overridden by llRemoteLoadScriptPin).

Caveats

If the object is rezzed by a script in another object then the object_rez event in that object is not serialized with respect to the on_rez event in the rezzed object.


Examples

See Also

Events

•  object_rez triggered when this object rezzes an object from inventory

Functions

•  llGetStartParameter
•  llRezObject
•  llRezAtRoot

Deep Notes

Signature

event void on_rez( integer start_param );