How to dynamically spawn events using on JS?

Hey guys, I'm learning the API from rmmv making a hookshot and im having some issues. I want to dynamically spawn events to be the 'rope' of the hook as it passes by.
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.
There is no way to do this by default, you will need a plugin for that.
I was thinking in something like:

$gameMap._events.push( {dynamicalle instanced rope} );

I was pretty sure it was going to work 🙁

U guys got any clue how can i 'print' a rope on the screen as hooks passes by?
If all you need is a sprite, then you definitely do not want to add an event. Events are a little bit heavier than a sprite.

If anything, you'll want to look at the Spriteset_Base/Spriteset_Map and study how to add sprites to the scene.
Thanks man! Gonna test it.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-dynamically-spawn-events-using-on-js.53938/