Skip to content
Starkkz edited this page Jul 6, 2016 · 21 revisions

The 'Light' object

Light = Shadows.CreateLight(World World, number Radius)
Light = Shadows.CreateStar(World World, number Radius)

Methods

Light:SetAngle(number Angle)
Description: Changes the angle of the light.

number Angle = Light:GetAngle()
Description: Gets the angle of the light.

Light:SetPosition(number x, number y[, number z])
Description: Sets the position of the light, z is a optional height value.

number x, number y, number z = Light:GetPosition()
Description: Gets the position of the light.

Clone this wiki locally