LightingModel.getLightProperties()

   
Type function
Library wattageTileEngine.LightingModel.*
Return value Table
Keywords  
See also  

Overview

This function returns the row, column, red, green, blue, intensity, and radius values of the light with the specified id. If no light with the specified ID exists, nil is returned.

Syntax

LightingModel.getLightProperties( lightId )
lightId (required)

Number. The ID of the light for which info will be retrieved.

Examples

local light = lightingModelInstance.getLightPropertied(42)
local row = light.row
local column = light.column
local red = light.r
local green = light.g
local blue = light.b
local intensity = light.intensity
local radius = light.radius