Add character lights||doc135752

September 20, 2022

Format

 GameSettings:addActorLight(mainLightColor, subLightColor, ambientLightColor, brightness, time, transition) 

Description

Add character lights.


Parameters

Variable name type Description
mainLightColor Vector3 main light color
subLightColor Vector3 sub light color
ambientLightColor Vector3 ambient light color
brightness Vector3 brightness
time float The time to run, the value range is 0 ~ 23.999
transition float The speed of transition to character light, the value range is 0 ~ 1


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)