Garry's Mod Wiki

CLuaParticle:SetLifeTime

  CLuaParticle:SetLifeTime( number lifeTime )

Description

Sets the 'life time' of the particle, how long the particle existed since its creation.

This value should always be between 0 and CLuaParticle:GetDieTime.

It changes automatically as time goes.

If the life time of the particle will be more than CLuaParticle:GetDieTime, it will be removed.

Arguments

1 number lifeTime
The new life time of the particle.