Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to stop a Particle Script using chat

Asmita Frangilli
Registered User
Join date: 8 Dec 2006
Posts: 9
01-19-2009 04:46
Hi, I have a basic Open source particle script that allows for a "time out" of the particles based on whatever number I enter, but what can I do if I just want to be able to type "off", "stop" or "end" into the chat box and actually have the particles stop? Is that a whole new script?
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
01-19-2009 06:41
no it's pretty straight forward. in the listen event, you write something like

if(message == "off";){llParticleSystem([]);}//using an empty particle system function removes the particles from the prim
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
01-19-2009 14:43
You will also need an llListen() call to tell your script to listen to chat.
_____________________
So many monkeys, so little Shakespeare.