self:is_negative

Client

Checks whether the area 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 area light
local entity = light.area.create()

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

On this page