A sensor radar script can be laggy if you have the sensor range set to a large area and using a large map.
Especially having it check through every single event in the map constantly will surely lag if you have too many events on the map.
The game original built in sensor is to check the distance of the player from the event (on event side).
Because off screen events will automatically stop running, this prevents the lag in a way.
If you don't mind a small change to the design, i might be able to put up a sensor script for you that only run once when the script is called.
A slight lag can still happen during scan depending on the events you have on map, but at least it won't be always lagging down the system compared to constant running radar.
Enemy's name tag:
<enemy>Put that in the events' name to declare the event as enemy for the scanner.
Script call:
To get the nearest enemy event's id.
nearest_enemyPair this with a
game variable's script box to check result in message box
eg
Control Variables:[0001] = nearest_enemy
To get a list of all enemies, use this:
$game_map.scan_targetthis script call will return a list of enemies(event's id and their distance from player)
Script:
http://forums.rpgmakerweb.com/index.php?/topic/46115-enemy-distant-scanner-radar/