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