Event line of sight

for my game im trying to have searchlights that flash on and off and if they spot the player i want them to trigger an event.
thanks
what form do those searchlights have?

the simplest solutions would be to have the searched positions covered by events that always react to the player, but decide on a switch (light on/off) if they trigger a bad reaction or do nothing.
but that way has a number of requirements that don't work for more complex or larger searchlights.

Original thread: https://forums.rpgmakerweb.com/threads/event-line-of-sight.150154/