Page 1 of 1

Destroyable/Exploding Object Script

Posted: Sat Jun 24, 2017 8:48 pm
by Gusher Castaignede
Am looking for experienced scripter for possible trade work, collaboration, or perhaps for hire for scripts that I need...contact me for more details..

Thanks

Re: Destroyable/Exploding Object Script

Posted: Wed Jun 28, 2017 8:14 pm
by Shandon Loring
Hi G!
I'm not a guru scripter by any means, but I believe I do have an exploding sheep and script if you interested.. should be adaptable to other cool chaos.

Re: Destroyable/Exploding Object Script

Posted: Wed Jun 28, 2017 9:37 pm
by Gusher Castaignede
Hello Shandom, how does the sheep explode currently? By shooting at it or?
Shandon Loring wrote:Hi G!
I'm not a guru scripter by any means, but I believe I do have an exploding sheep and script if you interested.. should be adaptable to other cool chaos.

Re: Destroyable/Exploding Object Script

Posted: Tue Jul 04, 2017 8:03 pm
by Shandon Loring
Well this is embarrassing... I can't find my sheep!!
I found my exploding Penguin, but he is totally no mod, so I can't get a look at the script
I have a backup source though, and will go seeking it shortly..

This one is not much of a substitute, but maybe helpful for something, it's dropped in an object, and when someone collides with that object it throws out a huge particle cloud (explosion) and derezzes the object..


default
{
collision_end(integer num_detected)
{
llParticleSystem

([

PSYS_PART_FLAGS,
PSYS_PART_INTERP_COLOR_MASK|
//PSYS_PART_WIND_MASK |
PSYS_PART_EMISSIVE_MASK,

PSYS_SRC_PATTERN,
PSYS_SRC_PATTERN_ANGLE_CONE,
//PSYS_SRC_PATTERN_ANGLE,
//PSYS_SRC_PATTERN_EXPLODE,

// Start of particle settings

PSYS_SRC_TEXTURE, "",//If you want the explosion to have a texture, put the UUID here.

PSYS_SRC_ANGLE_BEGIN , 0.0,
PSYS_SRC_ANGLE_END , 0.5,

PSYS_SRC_BURST_SPEED_MIN, 3.0,
PSYS_SRC_BURST_SPEED_MAX, 5.0,

PSYS_SRC_BURST_RADIUS, 0.0,
PSYS_SRC_BURST_PART_COUNT, 5,
PSYS_SRC_BURST_RATE, 0.001,
PSYS_PART_MAX_AGE, 3.0,//this is where you are going to say how big it is. This is a LARGE explosion.
PSYS_SRC_ACCEL, <0.0,0.0,0.2>,

PSYS_PART_START_SCALE, <2.0, 2.0, FALSE>,
PSYS_PART_END_SCALE, <.02,.02, FALSE>,

PSYS_PART_START_COLOR, <1,.25,0>,
PSYS_PART_END_COLOR, <1,1,.5>,

PSYS_PART_START_ALPHA, 1.0,
PSYS_PART_END_ALPHA, 0.1,

PSYS_SRC_PATTERN,
PSYS_SRC_PATTERN_EXPLODE
]);
llSleep(4);
llDie();
}
}

Re: Destroyable/Exploding Object Script

Posted: Wed Jul 05, 2017 4:56 pm
by Gusher Castaignede
I just tested the script and may workout with a bit of additions and tweaks... will try to figure out how to make the tweaks but let me know how I can compensate you for the effort... appreciate it!