Hitbox/Range that follows an Event/NPC?

Hi!,

Would it be possible to create some sort of invisible range/hitbox that follows an NPC/Event with a route movement and in that range, the main player would be able to interact within that moving range?

For example, if an NPC is walking up a hall up and down, the player can walk within a close range of the moving NPC and it would trigger an event, etc if that makes sense

Any help or support would be greatly appericated!

Original thread: https://forums.rpgmakerweb.com/threads/hitbox-range-that-follows-an-event-npc.144027/