self:is_visible

Client

Checks whether the spot light is set as visible


Syntax

local result = self:is_visible()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the spot light is visible, false otherwise

Examples

Check visibility of a spot light
local entity = light.spot.create()

core.engine.print("info", "Spot light visible:", entity:is_visible())

On this page