self:set_visible

Client

Sets the visibility of the point light


Syntax

local status = self:set_visible(
    state
)

Parameters

TypeNameDescription
boolstatetrue to show the point light, false to hide it

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_visible(false)

On this page