Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Particles question

Starmand Stygian
Junior Member
Join date: 12 May 2004
Posts: 8
07-21-2004 13:07
A simple noob question.

I have a particle effect that I want to be activated in intervals, every x seconds. For example, I want steam to shoot out of a pipe for 5 seconds, then stop for 5 seconds, and start again for 5 seconds, and so on....

I can figure this out, but I need some sleep, so I'm hoping the answer will be here when I wake up...hehe

Thanks for helping out a lazy guy :)
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
07-23-2004 12:42
Your script needs some sleep too:
CODE

state_entry()
{
while(TRUE)
{
llParticleSystem([ lots of stuff ]);
llSleep(5.0);
llParticleSystem([]); // turn particles off
llSleep(5.0);
}
}


You could also do this using llSetTimer and a timer event.
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Starmand Stygian
Junior Member
Join date: 12 May 2004
Posts: 8
07-25-2004 17:35
Thank you, Wednesday :) Looks good.