Well, you should open the scripts it does. Its is more or less justa demo than a fully canned effect. The problem si thet the position is driven by lifespan of the particle, and obviously a particle continues to age no matter what. However you can simply substitute the param length by a separate variable thet is equal to lifespan untill certain condition arises.