self:set_negative

Client

Sets whether the spot light operates in negative mode, subtracting light from the scene


Syntax

local status = self:set_negative(
    state
)

Parameters

TypeNameDescription
boolstatetrue to enable negative mode, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply negative on a spot light
local entity = light.spot.create()

entity:set_negative(true)

On this page