self:set_shadow_enabled
Client
Sets whether the spot light casts shadows
Syntax
local status = self:set_shadow_enabled(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to enable shadow casting, false to disable |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:set_shadow_enabled(true)