self:is_negative

Client

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

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

On this page