self:set_visible
Client
Sets the visibility of the spot light
Syntax
local status = self:set_visible(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to show the spot light, false to hide it |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_visible(false)