Change font size
It is currently Sun Jul 22, 2018 3:29 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: multiple particle controller
PostPosted: Fri Jul 18, 2008 7:53 pm 

Joined: Fri Jul 18, 2008 6:44 pm
Posts: 4
//////particle control (master)

string msg = "this text is in the blue box that will appear";
integer gChan = -1; //this is the channel the buttons work on
string particle1 = " "; //these are the names of what the particles are or what they do,
string particle2 = " "; //they will be buttons on the blue menu that comes up.
string particle3 = " ";
string particle4 = " ";
string particle5 = " ";
string particle6 = " ";
string particle7 = " ";
string particle8 = " ";
list buttons = [particle1,particle2,particle3,particle4,particle5,particle6,particle7,particle8];
default
{
on_rez(integer start)
{
llPassTouches(FALSE);
llListen(gChan, "", llGetOwner(), "");
}
state_entry()
{
llPassTouches(FALSE);
llListen(gChan, "", llGetOwner(), "");
}

touch_start(integer total_number)
{
llDialog(llGetOwner(), msg, buttons, gChan);
}
listen(integer channel, string name, key id, string msg)
{
if (msg == particle1)
{
llMessageLinked(LINK_SET, 0, "p1", "");
}
else if (msg == particle2)
{
llMessageLinked(LINK_SET, 0, "p2", "");
}
else if (msg == particle3)
{
llMessageLinked(LINK_SET, 0, "p3", "");
}
else if (msg == particle4)
{
llMessageLinked(LINK_SET, 0, "p4", "");
}
else if (msg == particle5)
{
llMessageLinked(LINK_SET, 0, "p5", "");
}
else if (msg == particle6)
{
llMessageLinked(LINK_SET, 0, "p6", "");
}
else if (msg == particle7)
{
llMessageLinked(LINK_SET, 0, "p7", "");
}
else if (msg == particle8)
{
llMessageLinked(LINK_SET, 0, "p8", "");
}

}
}



//////particle system(slave)

integer switch;
string particle = "p1"; //set this to be whichever particle prim this is
default
{

state_entry()
{
switch = FALSE;
llParticleSystem([]); //Stop making particles
}

link_message(integer sender, integer num, string str, key id)
{
if (str == particle)
{
if(switch == FALSE)
{
switch == TRUE;
//insert the particle system here
}
else
{
llParticleSystem([]); //stops the particles
}

}

}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net