RezParam
Constants in the RezParam enum.
// PlacementREZ_POS, vector pos, integer relative, integer at_root // region coordinates unless relative is TRUEREZ_ROT, rotation rot, integer relative // absolute unless relative is TRUE// Start dataREZ_PARAM, integer param // passed to on_rezREZ_PARAM_STRING, string start_param // at most 1024 bytes; read with llGetStartStringREZ_FLAGS, integer flags // REZ_FLAG_*// MotionREZ_VEL, vector velocity, integer local, integer inherit // inherit adds the rezzer's velocityREZ_ACCEL, vector force, integer local // constant forceREZ_OMEGA, vector axis, integer local, float spin, float gainREZ_LOCK_AXES, vector locks // non-zero components stop spin on that axis// SoundREZ_SOUND, string sound, float volume, integer loop // inventory name or UUIDREZ_SOUND_COLLIDE, string sound, float volume // played on collision// CombatREZ_DAMAGE, float damage // dealt to an agent on collisionREZ_DAMAGE_TYPE, integer damage_type // DAMAGE_TYPE_* or a custom type
Constants
Placement
| Constant | Type | Value | Description |
|---|---|---|---|
REZ_POS | integer | 2 | Rez parameter [vector position, integer relative, integer at_root] to specify where to rez the object. Can be in region coordinates or relative to the rezzing object, and centered on either the object's center or the root prim. |
REZ_ROT | integer | 3 | Rez parameter specifying the initial rotation to apply to the newly rezzed object. Can be relative to the rezzing object or absolute. |
Start data
| Constant | Type | Value | Description |
|---|---|---|---|
REZ_PARAM | integer | 0 | Rez parameter specifying the integer start parameter passed into the newly rezzed object's on_rez event. |
REZ_PARAM_STRING | integer | 13 | Rez parameter specifying an initialization string (up to 1024 bytes) passed to the root prim of the newly rezzed object, readable via llGetStartString. |
REZ_FLAGS | integer | 1 | Rez parameter specifying the integer bitfield of flags to apply to the newly created object. |
Motion
| Constant | Type | Value | Description |
|---|---|---|---|
REZ_VEL | integer | 4 | Rez parameter specifying the initial velocity to apply to the object. Accepts [vector velocity, integer local, integer inherit]. If inherit is TRUE, it adds the rezzing object's velocity. |
REZ_ACCEL | integer | 5 | Rez parameter specifying a constant acceleration force to apply to the rezzed object (as a [vector force, integer relative] pair). If relative is TRUE, the vector is in local coordinates. |
REZ_OMEGA | integer | 7 | Rez parameter specifying the initial angular velocity (omega) applied to the object. Accepts [vector axis, integer relative, float spin, float gain]. If relative is TRUE, the axis vector is in local coordinates. |
REZ_LOCK_AXES | integer | 11 | Rez parameter [vector locks] used to prevent the physical object from rotating or spinning around specified axes. Setting a coordinate to a non-zero value locks that axis. |
Sound
| Constant | Type | Value | Description |
|---|---|---|---|
REZ_SOUND | integer | 9 | Rez parameter [string name_or_uuid, float volume, integer loop] to attach and play a sound from inventory or a UUID asset key. If loop is TRUE, it loops continuously. |
REZ_SOUND_COLLIDE | integer | 10 | Rez parameter [string name_or_uuid, float volume] specifying a sound (from inventory or a UUID asset key) to play upon collision with another object, the ground, or an avatar. |
Combat
| Constant | Type | Value | Description |
|---|---|---|---|
REZ_DAMAGE | integer | 8 | Rez parameter specifying the float damage amount the rezzed object inflicts on an agent upon collision. |
REZ_DAMAGE_TYPE | integer | 12 | Rez parameter specifying the integer damage type applied on collision (supports DAMAGE_TYPE_* constants, custom types, or a repurposed damage field). |
Used by
llRezObjectWithParamsfunctionInstantiates the named inventory object (defaulting to the rezzing prim's position unless REZ_POS is specified) using the initial set of parameters specified in options. Returns the key of the rezzed object, or a blank key on failure.