How can I make the player’s flashlight not go through walls? (Community Lighting MZ)

Hi everyone!!!!


I’m using the Community Lighting plugin (Terrax) in RPG Maker MZ, and everything works fine except for one problem: the player’s flashlight passes through walls.


I’d like to make the flashlight stop at walls or obstacles, but I can’t figure out how to configure this. I’ve checked the plugin parameters and documentation, but I don’t see anything related to wall collision or light blocking.


How can I set up the map so that the flashlight doesn’t shine through walls?


I’d really appreciate any help or examples from someone who has managed to do this. Thanks in advance!

PD: I tried this...

1761682967734.png


1761682982608.png


1761683021749.png
I bet you need to set "On/Off" to "true"? (Argumentos)
I bet you need to set "On/Off" to "true"? (Argumentos)

Oh ive already tried
Well just checked it, and it works for me with the on/off set to true and the other parameters like yours. So if it's still doesn't work for you, probably some other plugins conflict...Try to disable all other plugins and check it again, one by one.
Well just checked it, and it works for me with the on/off set to true and the other parameters like yours. So if it's still doesn't work for you, probably some other plugins conflict...Try to disable all other plugins and check it again, one by one.
Ok i will tell you the result!!!
Thanks for your help!!
I tested it in a clean project; this command only works to ignore blocks with a defined region, but not to prevent the player's light effect from stopping upon collision.
Community_Lighting_MZ_-_Tile-Base Light Blocking-Method.png


I analyzed several pages of the plugin's official topic and it seems that it wked as expected previously, but in one of the several updates it stopped working, see here:

Perhaps this will be more functional for future situations that you want to implement in your game:
Well just checked it, and it works for me with the on/off set to true and the other parameters like yours. So if it's still doesn't work for you, probably some other plugins conflict...Try to disable all other plugins and check it again, one by one.

Don't see the wall, but I still can see trough it...
I keep searching and let you know if find a solution.

Thanks a lot for your help!!

1761690461056.png
I tested it in a clean project; this command only works to ignore blocks with a defined region, but not to prevent the player's light effect from stopping upon collision.
View attachment 352125

I analyzed several pages of the plugin's official topic and it seems that it wked as expected previously, but in one of the several updates it stopped working, see here:

Perhaps this will be more functional for future situations that you want to implement in your game:

Thanksssss for your time!!
Please use the edit button instead of posting consecutive messages...

I tested the developer's demo and this is from the plugin. I'll try using older versions, but that's not ideal because of the fixes in the current version:
1761691107672.png
Don't see the wall, but I still can see trough it...
I keep searching and let you know if find a solution.

Thanks a lot for your help!!

View attachment 352126
Jeez, sorry, it's the same for me. I mean, I can still see through the walls. I just draw the region "off the house map" so it looked like the light is missing, but for thin walls it looked like this for me, too. The region just "delete" the light, but you can still see through.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-the-players-flashlight-not-go-through-walls-community-lighting-mz.180749/