create a new variable
Code:
var stopme = 0;




replace
Code:
while(1)
{
effect(p_fountain,maxv(1,40*time_step),vector(0,0,0),vector(0,0,4));
wait(1);
}


with
Code:
while(stopme == 0)
{
effect(p_fountain,maxv(1,40*time_step),vector(0,0,0),vector(0,0,4));
wait(1);
}




After that, add a new case to you keyswitch:
Code:
switch(key)
{
case 59:
start_particle_while_key(59, vTemp);
break;

case 0: // no key hitten
stopme = 1;
wait(2);
stopme = 0;
break;
}




*not tested.. at the moment, i´m at work and have no GStudio here*


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<