What is it?
This MZ plugin adds a "Proximity Sensor" plugin command that turns on a switch/self-switch when an event is near the player. Can also calculate line of sight.
I made this as an MZ equivalent to Vlue's Proximity Detection script for VXAce.
What is this for?
Puzzles, stealth sequences, or games with roaming enemies. Can also be used for aggro and hit detection in an ABS.
Features
Plug-and-play, easy to use
Change the distance and switches in the plugin command menu
"In direction facing" and "in orthogonal directions" options
Set line of sight obstacles using Region IDs and Terrain Tags
How to Use
1. Put the .js file in your project's js/plugins/ folder.
2. In RMMZ, open the Plugin Manager through the Toolbar.
3. Double click an empty line, then use the "Name:" box to select "r88_ProximitySensor".