SpotLightBlueprint

Package: Libraries.Interface.Controls.Scenes.Blueprints · Inherits from: Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint, Libraries.Language.Object

The SpotLightBlueprint is a blueprint for a spotlight in a 3D scene: a light that shines in a cone, like a stage light or a flashlight. It holds the light's color, intensity and cone. In the editor, the spotlight is shown by a small textured box, so its place is easy to see; turning it aims the cone, which starts pointing straight down.

Actions

GetBlue()

This action returns the amount of blue in the light, from 0 to 1.

Returns

number: The blue

GetGreen()

This action returns the amount of green in the light, from 0 to 1.

Returns

number: The green

GetInnerAngle()

This action returns the cone's half-angle of full strength, in degrees.

Returns

number: The inner angle

GetIntensity()

This action returns how bright the light is.

Returns

number: The intensity

GetModelTexture()

This action returns the texture on the box that shows the spotlight in the editor.

Returns

Libraries.Game.Graphics.Texture: The texture

GetOuterAngle()

This action returns the cone's half-angle where the light ends, in degrees.

Returns

number: The outer angle

GetPaletteIcon()

This action returns the texture used as the spotlight's icon in a palette.

Returns

Libraries.Game.Graphics.TextureRegion: The icon

GetRed()

This action returns the amount of red in the light, from 0 to 1.

Returns

number: The red

SetBlue(number blue)

This action sets the amount of blue in the light, from 0 to 1.

Parameters

  • blue number: The blue

SetConeAngles(number inner, number outer)

This action sets the cone's half-angles, in degrees: full strength inside the inner one, fading to nothing at the outer one.

Parameters

  • inner number: The inner angle
  • outer number: The outer angle

SetGreen(number green)

This action sets the amount of green in the light, from 0 to 1.

Parameters

  • green number: The green

SetIntensity(number intensity)

This action sets how bright the light is.

Parameters

  • intensity number: The intensity

SetModelTexture(Libraries.Game.Graphics.Texture modelTexture)

This action sets the texture on the box that shows the spotlight in the editor.

Parameters

SetPaletteIcon(Libraries.Game.Graphics.TextureRegion paletteIcon)

This action sets the texture used as the spotlight's icon in a palette.

Parameters

SetRed(number red)

This action sets the amount of red in the light, from 0 to 1.

Parameters

  • red number: The red

Inherited Actions

20 actions from Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint
3 actions from Libraries.Language.Object