How to make an event damage the player upon touch and keep moving?

Like say it's a car on a predetermined route that damages the player if they touch it, but it keeps going afterward without losing any momentum.

I'm only managing either to make it go through the player and thus having no effect, or the event gets stuck on the player until they move.
You can try to check if the event's position and player's position match. In a parallel event, that condition will be checked continuously. So you can set the event to through.
This is something like
($gameMap.event(num).x == $gamePlayer.x) && ($gameMap.event(num).y == $gamePlayer.y)
The moment the event runs over the player, the condition will be met and further event processing will happen.
Edit: I seemed to have misunderstood ^^; I though you want to damage the player and not a 'if' thing.
the movement needs to be done with autonomouse movement, and the event content triggered on event touch (event touching the player).
then the content of that not only needs a change HP to do the harm, but also a set move route targeted at the player to thrown him out of the way of the car, so that the car movement can continue after that.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-event-damage-the-player-upon-touch-and-keep-moving.122688/