self:set_visible

Client

Sets the visibility of the spot light


Syntax

local status = self:set_visible(
    state
)

Parameters

TypeNameDescription
boolstatetrue 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