self:set_area
Client
Sets the dimensions of the area light's rectangular emitting surface
Syntax
local status = self:set_area(
size
)Parameters
| Type | Name | Description |
|---|---|---|
vector2 | size | Area dimensions to apply as {width, height} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:set_area({4, 2})