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

TypeNameDescription
spotinstanceCreated spot light instance

Examples

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

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

On this page