Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

paricles start on right click??

Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
04-02-2008 07:12
I have a little problem ..
On my main script when some action is trigger this script send a message linked to other prim with a simple particle params but the problem is when I or other just touch with right click the entire object (linked prims) the particles start anyway.
This is an example and with this script with out touch event or anything else the same extrange thing happend.
CODE



// The BARE BONES Particle Script, Vers 4.0 - 10/23/2006 - Jopsy Pendragon
// A sample script from the Particle Laboratory of Teal
string texture="c5a8f6e1-c221-a054-6d23-05a86a79ad60";
partic()
{

llParticleSystem( [
PSYS_SRC_TEXTURE, texture,
PSYS_PART_START_SCALE, <.1,0.1, 0>, PSYS_PART_END_SCALE, <1,1, 0>,
PSYS_PART_START_COLOR, <1,1,.5>, PSYS_PART_END_COLOR, <.4,.1,0>,
PSYS_PART_START_ALPHA, 1.0, PSYS_PART_END_ALPHA, 0.0,

PSYS_SRC_BURST_PART_COUNT, 500,
PSYS_SRC_BURST_RATE, 0.01,
PSYS_PART_MAX_AGE, 1.0,
PSYS_SRC_MAX_AGE, 0.25,

PSYS_SRC_PATTERN, 2, // 1=DROP, 2=EXPLODE, 4=ANGLE, 8=ANGLE_CONE,
PSYS_SRC_ACCEL, <0.0,0.0,-3.0>,

// PSYS_SRC_BURST_RADIUS, 0.0,
PSYS_SRC_BURST_SPEED_MIN, 1.2, PSYS_SRC_BURST_SPEED_MAX, 5.01,

PSYS_SRC_ANGLE_BEGIN, 45*DEG_TO_RAD, PSYS_SRC_ANGLE_END, 0*DEG_TO_RAD,
PSYS_SRC_OMEGA, <0,0,0>,

// PSYS_SRC_TARGET_KEY, llGetLinkKey(llGetLinkNum() + 1),

PSYS_PART_FLAGS, ( 0
| PSYS_PART_INTERP_COLOR_MASK
| PSYS_PART_INTERP_SCALE_MASK
| PSYS_PART_EMISSIVE_MASK
| PSYS_PART_FOLLOW_VELOCITY_MASK
| PSYS_PART_WIND_MASK
// | PSYS_PART_BOUNCE_MASK
// | PSYS_PART_FOLLOW_SRC_MASK
// | PSYS_PART_TARGET_POS_MASK
// | PSYS_PART_TARGET_LINEAR_MASK
) ] );

}

default {


state_entry(){}

}






[\CODE]
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
04-02-2008 07:33
I never saw someone activating/updating particles with right click...it happens with llTargetOmega, it's a bug.

But remember that even if you remove particle script, particles will be there anyway.

With that script you sent, I suppose it's an excerpt, I can't tell you anything about it. If you send the complete thing maybe....
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
04-02-2008 07:49
That script is just for testing the same thing append if you put this script in a prim and make right click on it, when you touch the prim with your right clik and release it the particle start with out type of call.
and this script is runing in the child script waiting for the linked message "explo".

CODE




particles()
{

llParticleSystem( [
PSYS_SRC_TEXTURE,texture,
PSYS_PART_START_SCALE, <.1,0.1, 0>, PSYS_PART_END_SCALE, <1,1, 0>,
PSYS_PART_START_COLOR, <1,1,.5>, PSYS_PART_END_COLOR, <.4,.1,0>,
PSYS_PART_START_ALPHA, 1.0, PSYS_PART_END_ALPHA, 0.0,

PSYS_SRC_BURST_PART_COUNT, 500,
PSYS_SRC_BURST_RATE, 0.01,
PSYS_PART_MAX_AGE, 1.0,
PSYS_SRC_MAX_AGE, 0.25,

PSYS_SRC_PATTERN, 2, // 1=DROP, 2=EXPLODE, 4=ANGLE, 8=ANGLE_CONE,
PSYS_SRC_ACCEL, <0.0,0.0,-3.0>,

// PSYS_SRC_BURST_RADIUS, 0.0,
PSYS_SRC_BURST_SPEED_MIN, 1.2, PSYS_SRC_BURST_SPEED_MAX, 5.01,

PSYS_SRC_ANGLE_BEGIN, 45*DEG_TO_RAD, PSYS_SRC_ANGLE_END, 0*DEG_TO_RAD,
PSYS_SRC_OMEGA, <0,0,0>,

// PSYS_SRC_TARGET_KEY, llGetLinkKey(llGetLinkNum() + 1),

PSYS_PART_FLAGS, ( 0
| PSYS_PART_INTERP_COLOR_MASK
| PSYS_PART_INTERP_SCALE_MASK
| PSYS_PART_EMISSIVE_MASK
| PSYS_PART_FOLLOW_VELOCITY_MASK
| PSYS_PART_WIND_MASK
// | PSYS_PART_BOUNCE_MASK
// | PSYS_PART_FOLLOW_SRC_MASK
// | PSYS_PART_TARGET_POS_MASK
// | PSYS_PART_TARGET_LINEAR_MASK
) ] );


}

default
{
state_entry()
{

}

link_message(integer num_sender, integer num, string str, key id)

{

if(str=="explo")
{
particles();

}



}
}
[\CODE]