Trail

self:get_global_scale

Client

Retrieves the global scale of the trail derived from its global transform

Syntax

local scale = self:get_global_scale()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3scaleCurrent global scale as {x, y, z}

Examples

Get the global scale of a trail
local entity = particle.trail.create()
local scale = entity:get_global_scale()

core.engine.print("info", "Trail global scale:", util.table.unpack(scale))

On this page