Whether the model accepts block lights||doc135710

September 20, 2022

Format

 GameSettings:setActorReceiveBlockLight(val) 

Description

Sets whether the model receives light from glowing blocks.


Precautions

When setting whether the model accepts the light source of the light-emitting block, first set the block to "glow", then use it in the game first.bakeLightAndSaveSet the map baking effect. It should be noted that the intensity value (0-15) of each color channel is set in the set block configuration before baking, and this information is preserved in the map and then baked, so that the "luminous" situation can be expressed. .


Parameters

Variable name type Description
val boolean whether to receive


Code Samples

World.CurMap:bakeLightAndSave(true, true)
Blockman.Instance().gameSettings:setActorReceiveBlockLight(true)