clear all lights||doc135749

September 20, 2022

Format

 GameSettings:clearLight() 

Description

Clear all lights.


Precautions

To clear all lights, first we need to set up multiple lights. passaddLightto add lights, and set the exposure time and transition time of each light. The light will be illuminated in a continuous cycle. When this function is called, all lights will be cleared and the current light will be maintained.


Code Samples

Blockman.Instance().gameSettings:addLight(
{x=0,y=-1,z=0},{x=1,y=0,z=0},{x=1,y=0,z=0},{x=1,y=0,z=0},{x=1,y=0,z=0},5.0,10.0
)
Blockman.Instance().gameSettings:addLight(
{x=0,y=-1,z=0},{x=0,y=1,z=0},{x=0,y=1,z=0},{x=0,y=1,z=0},{x=0,y=1,z=0},5.0,10.0
)
Blockman.Instance().gameSettings:clearLight()