Garry's Mod Wiki

CLuaParticle:GetLifeTime

  number CLuaParticle:GetLifeTime()

Description

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

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

It changes automatically as time goes.

It can be manipulated using CLuaParticle:SetLifeTime.

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

Returns

1 number
How long the particle existed, in seconds.