Move Toward Event

Is there a script call to use that would allow me to have an event move toward another event, like the Move Toward Player command does for the player?
I'm aware there are some third-party scripts that can help me do that, but I don't want to resort to using one, if I don't have to.
If you use a third party script, you'd be able to make the "walk toward event" work better, but the following line should work the same way the "move toward player" works:

move_toward_character($game_map.interpreter.get_character(1))just add it to any event move route, replacing the number 1 with the ID of the event you want to follow.
If you use a third party script, you'd be able to make the "walk toward event" work better, but the following line should work the same way the "move toward player" works:

move_toward_character($game_map.interpreter.get_character(1))just add it to any event move route, replacing the number 1 with the ID of the event you want to follow.
I get an error:

Undefined method 'x' for nil:NilClass
I get an error:

Undefined method 'x' for nil:NilClass
And the event ID is correct?

try this instead:

Code:
move_toward_character($game_map.events[1])
And the event ID is correct?

try this instead:

move_toward_character($game_map.events[1])
Yep, that's it! Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/move-toward-event.38047/