Area Light

self:set_visible

Client

Sets the visibility of the area light

Syntax

local status = self:set_visible(
    visible
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_visible(false)

On this page