llParticleSystem
LSLvoid llParticleSystem(list rules)
Creates a particle system in the prim the script is attached to, based on Parameters. An empty list removes a particle system from object.\ List format is [ rule-1, data-1, rule-2, data-2 ... rule-n, data-n ].
Parameters
| Type | Name | What it does |
|---|---|---|
| list | rules | PSYS_ key/value pairs — pattern, texture, sizes, colours, rate, life and speed. |
Example
default
{
state_entry()
{
llParticleSystem([
PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK | PSYS_PART_INTERP_COLOR_MASK,
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE_CONE,
PSYS_PART_START_COLOR, <1.0, 0.6, 0.1>,
PSYS_PART_END_COLOR, <1.0, 0.1, 0.0>,
PSYS_PART_START_SCALE, <0.3, 0.3, 0.0>,
PSYS_PART_END_SCALE, <0.05, 0.05, 0.0>,
PSYS_PART_MAX_AGE, 1.5,
PSYS_SRC_BURST_RATE, 0.05,
PSYS_SRC_BURST_PART_COUNT, 4,
PSYS_SRC_BURST_SPEED_MIN, 0.5,
PSYS_SRC_BURST_SPEED_MAX, 1.0,
PSYS_SRC_ANGLE_END, 0.3
]);
}
touch_start(integer n)
{
llParticleSystem([]); // off
}
}
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.
More in LSL
void llGetNextEmail(string address, string subject)
list llParcelMediaQuery(list aList)
vector llDetectedGrab(integer number)
integer llOrd(string s, integer index)
rotation llGetMoonRotation()
vector llRot2Fwd(rotation r)
string llGetObjectDesc()
list llListReplaceList(list dest, list src, integer start, integer end)