Skip to content

getLightType

Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns the type for a light element.

OOP Syntax Help! I don't understand this!

  • Method:light:getType(...)

Syntax

int getLightType ( ​light theLight )
Required arguments
  • theLight: The light that you wish to retrieve the type of.

Returns

Returns an int containing the type of the specified light, false if invalid arguments were passed.

  • int: value

Code Examples

shared
local light = createLight(1, 2, 3, 4)
outputChatBox("light type " .. getLightType(light))