light.area.create

Client

Creates a new area light instance and adds it to the scene


Syntax

local instance = light.area.create()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
areainstanceCreated area light instance

Examples

Create a area light instance
local entity = light.area.create()

entity:set_color({1, 1, 1})
entity:set_energy(1.0)
entity:set_position({0, 5, 0})

On this page