Whether the model accepts block lights||doc135710
September 20, 2022
- The class to which the function belongs:
- Call limit:
Sets whether the model receives light from glowing blocks.
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. .
|val||boolean||whether to receive|
World.CurMap:bakeLightAndSave(true, true) Blockman.Instance().gameSettings:setActorReceiveBlockLight(true)