light.point.create
Client
Creates a new point light instance and adds it to the scene
Syntax
local instance = light.point.create()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
point | instance | Created point light instance |
Examples
local entity = light.point.create()
entity:set_color({1, 1, 1})
entity:set_energy(1.0)
entity:set_position({0, 5, 0})