Trail

self:set_width

Client

Sets the width of the trail at its start

Syntax

local status = self:set_width(
    width
)

Parameters

TypeNameDescription
floatwidthTrail width at its start in world units, it thins out to nothing at the end

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_width(0.08)

On this page