Mz issue (new to rpg maker). Script for route (event to event)

Hello first i'm a noob in rpgm , i created a new event (EV001) and set the autonomous movement option to: (random) and i placed another event on the map (EV002) to follow the first event (EV001), i have chosen custom route and script: move_toward_event(1) but when i launch the test i have the error (move_toward_event is not defined).
Moved to: MZ Support

Tech Support is when you're having problems with the editor itself.

There is no move_toward_event function. Use this.moveTowardCharacter($gameMap.event(1))
Thank you so much it's working 🙂 .
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/mz-issue-new-to-rpg-maker-script-for-route-event-to-event.131284/