Trail

self:get_lifetime

Client

Retrieves how long the trail takes to fade out

Syntax

local seconds = self:get_lifetime()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatsecondsTrail lifetime in seconds

Examples

Get the trail lifetime
local entity = particle.trail.create()

core.engine.print("info", entity:get_lifetime())

On this page