Spot Light

self:set_visible

Client

Sets the visibility of the spot light

Syntax

local status = self:set_visible(
    visible
)

Parameters

TypeNameDescription
boolvisibletrue to show the spot light, false to hide it

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Hide a spot light
local entity = light.spot.create()

entity:set_visible(false)

On this page