Jym_Nova icon

particle on/off with chat

Jym_Nova | PRO | 11/22/14 06:12:34 PM UTC | 0 ⭐ | 756 👁️ | Never ⏰ | []
Linden Scripting |

0 B

|

None

|

0 👍

/

0 👎

// Written By: Ĵyм Ѡҩℓƒ (Jym Resident)
/* 
LICENCE:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
or you may visit - http://license.idjhost.com/
*/
// DESCRIPTION
// Particles switch - Starting and Stopping particles by chat command
 
default
{
        state_entry()
    {
        listen(llListen(-1, "", NULL_KEY, ""); //Negative channel is best to listen on
    }
    listen(integer channel, string name, key id, string msg)
    {
            if(msg == "Shine")
            {
                llParticleSystem(
                [
                    PSYS_SRC_PATTERN,PSYS_SRC_PATTERN_ANGLE_CONE,
                    PSYS_SRC_BURST_RADIUS,0.4,
                    PSYS_SRC_ANGLE_BEGIN,0.125,
                    PSYS_SRC_ANGLE_END,0,
                    PSYS_SRC_TARGET_KEY,llGetKey(),
                    PSYS_PART_START_COLOR,<1.000000,1.000000,1.000000>,
                    PSYS_PART_END_COLOR,<1.000000,1.000000,1.000000>,
                    PSYS_PART_START_ALPHA,0.0,
                    PSYS_PART_END_ALPHA,0.1,
                    PSYS_PART_START_GLOW,0,
                    PSYS_PART_END_GLOW,0.0125,
                    PSYS_PART_BLEND_FUNC_SOURCE,PSYS_PART_BF_SOURCE_ALPHA,
                    PSYS_PART_BLEND_FUNC_DEST,PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA,
                    PSYS_PART_START_SCALE,<0.031250,0.500000,0.000000>,
                    PSYS_PART_END_SCALE,<0.031250,2.500000,0.000000>,
                    PSYS_SRC_TEXTURE,"",
                    PSYS_SRC_MAX_AGE,0,
                    PSYS_PART_MAX_AGE,1.5,
                    PSYS_SRC_BURST_RATE,0,
                    PSYS_SRC_BURST_PART_COUNT,1,
                    PSYS_SRC_ACCEL,<0.000000,0.000000,0.000000>,
                    PSYS_SRC_OMEGA,<0.000000,0.000000,0.000000>,
                    PSYS_SRC_BURST_SPEED_MIN,0.5,
                    PSYS_SRC_BURST_SPEED_MAX,1.5,
                    PSYS_PART_FLAGS,
                        0 |
                        PSYS_PART_EMISSIVE_MASK |
                        PSYS_PART_FOLLOW_VELOCITY_MASK |
                        PSYS_PART_INTERP_COLOR_MASK |
                        PSYS_PART_INTERP_SCALE_MASK
                ]);
        }
        else if(msg == "dull")
        {
            llParticleSystem([]);
        }
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎