self:set_scale

Client

Sets the local scale of the spot light


Syntax

local status = self:set_scale(
    scale
)

Parameters

TypeNameDescription
vector3scaleScale to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the scale of a spot light
local entity = light.spot.create()

entity:set_scale({2, 2, 2})

On this page