- Joined
- Dec 9, 2019
- Messages
- 10
- Reaction score
- 2
- First Language
- portuguese
- Primarily Uses
- RMMV
i tried that, changed every case of Math.ceil to Math.floor when in relation to IsPlayerInLightRadius and its still brokenThere seems to be a bug in the IsPlayerInLightRadius function: Change Math.ceil to Math.floor.
I posted about this previously: https://forums.rpgmakerweb.com/index.php?threads/ocram-lights-plugin-for-mv.108614/post-1186342
Also if you move the light source using a "light-ex" comment, that doesn't appear to be taken into account when running IsPlayerInLightRadius. That could also be triggering an alert when in darkness or conversely not triggering when lit since the light radius is different to the visible light.