Trail

self:set_lifetime

Client

Sets how long the trail takes to fade out

Syntax

local status = self:set_lifetime(
    seconds
)

Parameters

TypeNameDescription
floatsecondsTrail lifetime in seconds, at least 0.01

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_lifetime(0.4)

On this page