transp=0.01;
if(transp!=0)
{
transp+=0.01;
}
if (time < 30) //30 frames is one second at the standard framerate, you can adjust this number
{
time ++; //increase time by 1
}
else //if 1 second has already passed
{
transp += .05; //add transparency to fade out - you can adjust this number to change the fade rate
if (transp >= 1) //if it's completely faded out
{
DestroyActor("Event Actor"); //destroy the particle
}
}
Users browsing this forum: No registered users and 1 guest