ParticleParam
Constants in the ParticleParam enum.
// Emitter pattern and burstPSYS_SRC_PATTERN, integer pattern // PSYS_SRC_PATTERN_*PSYS_SRC_BURST_RATE, float burst_sleep // seconds between bursts; 0.0 is as fast as the viewer canPSYS_SRC_BURST_PART_COUNT, integer burst_particle_countPSYS_SRC_BURST_RADIUS, float radius // metres from the emitter; ignored with PSYS_PART_FOLLOW_SRC_MASK// Particle appearancePSYS_PART_START_COLOR, vector color_startPSYS_PART_END_COLOR, vector color_end // needs PSYS_PART_INTERP_COLOR_MASKPSYS_PART_START_ALPHA, float alpha_start // 0.0 to 1.0PSYS_PART_END_ALPHA, float alpha_end // needs PSYS_PART_INTERP_COLOR_MASKPSYS_PART_START_SCALE, vector scale_start // 0.03125 to 4.0 m per axis; z ignoredPSYS_PART_END_SCALE, vector scale_end // needs PSYS_PART_INTERP_SCALE_MASKPSYS_PART_START_GLOW, float glow_start // 0.0 to 1.0PSYS_PART_END_GLOW, float glow_endPSYS_SRC_TEXTURE, string texture // inventory name or UUIDPSYS_PART_BLEND_FUNC_SOURCE, integer bf_source // PSYS_PART_BF_*; default _SOURCE_ALPHAPSYS_PART_BLEND_FUNC_DEST, integer bf_dest // PSYS_PART_BF_*; default _ONE_MINUS_SOURCE_ALPHA// MotionPSYS_SRC_BURST_SPEED_MIN, float speed_min // m/sPSYS_SRC_BURST_SPEED_MAX, float speed_max // m/sPSYS_SRC_ACCEL, vector acceleration // m/s², region axes; -100.0 to 100.0 per axisPSYS_SRC_OMEGA, vector omega // pattern rotation per burst, region axesPSYS_SRC_ANGLE_BEGIN, float angle_begin // half angle in radians; ANGLE patternsPSYS_SRC_ANGLE_END, float angle_end // half angle in radians; ANGLE patternsPSYS_SRC_TARGET_KEY, key target // needs PSYS_PART_TARGET_POS_MASK or _LINEAR_MASKPSYS_SRC_INNERANGLE, float angle_inner // deprecated: use PSYS_SRC_ANGLE_BEGINPSYS_SRC_OUTERANGLE, float angle_outer // deprecated: use PSYS_SRC_ANGLE_END// LifetimePSYS_PART_MAX_AGE, float duration_particle // seconds per particle; at most 30.0PSYS_SRC_MAX_AGE, float duration_system // seconds the emitter runs; 0.0 is forever// FlagsPSYS_PART_FLAGS, integer flags // PSYS_PART_*_MASK, combined with |
Constants
Emitter pattern and burst
| Constant | Type | Value | Description |
|---|---|---|---|
PSYS_SRC_PATTERN | integer | 9 | Integer parameter specifying the generation pattern (PSYS_SRC_PATTERN_*) used to emit particles. |
PSYS_SRC_BURST_RATE | integer | 13 | Float parameter specifying the interval in seconds between particle bursts. |
PSYS_SRC_BURST_PART_COUNT | integer | 15 | Integer parameter specifying the number of particles to release in each burst. |
PSYS_SRC_BURST_RADIUS | integer | 16 | Float parameter specifying the radial distance from the emitter's center at which particles are created. |
Particle appearance
| Constant | Type | Value | Description |
|---|---|---|---|
PSYS_PART_START_COLOR | integer | 1 | Vector parameter <r, g, b> that determines the starting color of the particles. |
PSYS_PART_END_COLOR | integer | 3 | Vector parameter <r, g, b> that determines the ending color of the particles. |
PSYS_PART_START_ALPHA | integer | 2 | Float parameter that determines the starting alpha (transparency) of the particles. |
PSYS_PART_END_ALPHA | integer | 4 | Float parameter that determines the ending alpha (transparency) of the particles. |
PSYS_PART_START_SCALE | integer | 5 | Vector parameter <sx, sy, z> defining the starting size of the particle billboard in meters (z-axis value is ignored). |
PSYS_PART_END_SCALE | integer | 6 | Vector parameter <sx, sy, z> defining the ending size of the particle billboard in meters (z-axis value is ignored). |
PSYS_PART_START_GLOW | integer | 26 | Float parameter that determines the starting glow value of the particles. |
PSYS_PART_END_GLOW | integer | 27 | Float parameter that determines the ending glow value of the particles. |
PSYS_SRC_TEXTURE | integer | 12 | String parameter specifying the inventory name or UUID asset key of the texture used for the particles. |
PSYS_PART_BLEND_FUNC_SOURCE | integer | 24 | Integer parameter defining the source blending function. |
PSYS_PART_BLEND_FUNC_DEST | integer | 25 | Integer parameter defining the destination blending function. |
Motion
| Constant | Type | Value | Description |
|---|---|---|---|
PSYS_SRC_BURST_SPEED_MIN | integer | 17 | Float parameter specifying the minimum initial speed of emitted particles. |
PSYS_SRC_BURST_SPEED_MAX | integer | 18 | Float parameter specifying the maximum initial speed of emitted particles. |
PSYS_SRC_ACCEL | integer | 8 | Vector parameter <x, y, z> specifying the constant acceleration to apply to particles. |
PSYS_SRC_OMEGA | integer | 21 | Vector parameter setting the angular velocity used to rotate the emission axis for ANGLE and ANGLE_CONE patterns. |
PSYS_SRC_ANGLE_BEGIN | integer | 22 | Float parameter specifying the angle in radians where particles will not be created (for ANGLE patterns). |
PSYS_SRC_ANGLE_END | integer | 23 | Float parameter specifying the ending angle in radians to be filled with particles (for ANGLE patterns). If smaller than angle_begin, their roles are swapped. |
PSYS_SRC_TARGET_KEY | integer | 20 | Key (UUID) of the target object that particles travel toward when PSYS_PART_TARGET_POS_MASK or PSYS_PART_TARGET_LINEAR_MASK is enabled. |
PSYS_SRC_INNERANGLE | integer | 10 | Float parameter specifying the inner angle of the arc for ANGLE or ANGLE_CONE patterns. The specified inner area will not contain particles. |
PSYS_SRC_OUTERANGLE | integer | 11 | Float parameter specifying the outer angle of the arc for ANGLE or ANGLE_CONE patterns. The area between the outer and inner angles is filled with particles. |
Lifetime
| Constant | Type | Value | Description |
|---|---|---|---|
PSYS_PART_MAX_AGE | integer | 7 | Float parameter specifying the lifetime (age in seconds) of an individual particle before it dies. |
PSYS_SRC_MAX_AGE | integer | 19 | Float parameter specifying the active duration of the particle system in seconds (0.0 means forever). |
Flags
| Constant | Type | Value | Description |
|---|---|---|---|
PSYS_PART_FLAGS | integer | 0 | Integer bitfield parameter specifying the simulation flags for emitted particles. Multiple flags can be combined using bitwise OR (|). |
Used by
llLinkParticleSystemfunctionCreates or updates a particle system on the linked prim link based on the list of rules. An empty list removes the particle system.llParticleSystemfunctionCreates or updates a particle system on the prim containing the script based on rules. An empty list removes the particle system.