So im trying to create an expression that will randomise when particle opacity will occur, and in addition once opacity reaches one the particle be killed so many frames later.
Ive tried two ways so far and neither work entirley
1:
Code:
int $query=30; int $rand1=floor(rand(0,2)); if(frame % $query==1)nParticleShape1.opacityPP=$rand1; if (nParticleShape1.opacityPP==1) nParticleShape1.lifespanPP=0+3;
2:
Code:
int $offset=30; int $currentTime = `currentTime -q`; $offsetTime = $currentTime + $offset; int $query=30; int $rand1=floor(rand(0,2)); if(frame % $query==1)nParticleShape1.opacityPP=$rand1; if (nParticleShape1.opacityPP==1) { if ($currentTime>$offsetTime)nParticleShape1.opacityPP=0; }
Would be great if anyone could help - thanks