Sets the color of ambient light around the character||doc135713

September 20, 2022

Format

 GameSettings:setActorAmbientColor(color) 

Description

Sets the color of ambient light around the character. The ambient light of the character is a kind of light formed by the surface of the character after being reflected by the light for many times.


Parameters

Variable name type Description
color Vector3 light color value


Code Samples

Blockman.Instance().gameSettings:setActorAmbientColor({x=0.5,y=0.5,z=0.5})
print(Blockman.Instance().gameSettings:getActorAmbientColor())