self:is_negative

Client

Checks whether the spot light is set to negative mode, which subtracts light from the scene


Syntax

local result = self:is_negative()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the light is in negative mode, false otherwise

Examples

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

core.engine.print("info", "Spot light negative:", entity:is_negative())

On this page