|
Woody Blair
Registered User
Join date: 7 Feb 2004
Posts: 18
|
05-30-2006 18:27
Anyone know where I can get a particle script that can be started and stopped with a private channel chat command? 
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
05-30-2006 20:30
Particle scripts are personal to what you want, however, just use the particle script on the wiki, and play with the numbers, then to turn them on and off via a chat.. use this integer PRIVATE_CHANNEL = 3; //Change this channel to whatever channel you want to talk ok
default { state_entry() { //You can put in more restrictions on the listener too, more resctrictions = less lag llListen(PRIVATE_CHANNEL, "", llGetOwner(), ""); } listen(integer channel, string name, key id, string message) { if(message == "on") { //start your particles } else if(message == "off") { llParticleSystem([]); } } on_rez(integer num) { llResetScript(); } }
this is just a quick write so not sure if it will compile, but hopefully this shows you the idea of what to do. PRIVATE_CHANNEL should be set to whatever channel you want to chat to. ie cfhannel 3. If you need this in game, just contact me, I'll pass you a simple one like this.
|
|
Woody Blair
Registered User
Join date: 7 Feb 2004
Posts: 18
|
05-30-2006 21:02
Thank you very much Lazink, that is exactly what I was looking for, I already have a special particle script that starts auto on rez, but wanted to be able to use a chat command to start and stop it. I will try this tonite and let you know if I need any further assistance. Again thank you for your assistance on this.
|