Clear character lights||doc135751

September 20, 2022

Format

 GameSettings:clearActorLight() 

Description

Clear character lights.


Precautions

To clear the character lights, first we need to set up multiple character lights. passaddActorLightto add character lights, and set the illumination time and transition time of each light. The lights will be illuminated in a continuous cycle. When this function is called, the lights added at the beginning will be cleared.


Code Samples

Blockman.Instance().gameSettings:addActorLight(
{x=1,y=0,z=0},{x=1,y=0,z=0},{x=1,y=0,z=0},{x=1,y=0,z=0},0.5,0.5)
Blockman.Instance().gameSettings:addActorLight(
{x=0,y=1,z=0},{x=0,y=1,z=0},{x=0,y=1,z=0},{x=0,y=1,z=0},0.4,0.4)
Blockman.Instance().gameSettings:clearActorLight()