How to make event go through everything except for player?

I am making a scene where a big vehicle is chasing after a character and they cannot be hit. I want to make it go through everything in front of it besides when it touches the character. I understand this question has been answered before but I didn't necessarily get how to make a parallel process that compares the location of the character and event. Thanks
they key to the parallel process is the control variable command.
you'll need four variables, two for the player and two for the event.

you'll use control variable with its game data section (the one that defaults to map ID, but change it to the wanted values) to load X and Y position for both player and event into the four variables.

then you'll compare player x to event x and the same for y, and if both are true make whatever you want for the hit.

remember to set a wait(5) or wait(10) depending on movement speed to prevent lag in the parallel process.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-event-go-through-everything-except-for-player.140041/