self:set_area

Client

Sets the dimensions of the area light's rectangular emitting surface


Syntax

local status = self:set_area(
    size
)

Parameters

TypeNameDescription
vector2sizeArea dimensions to apply as {width, height}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the dimensions of an area light
local entity = light.area.create()

entity:set_area({4, 2})

On this page