How to make event transfer to players position?

Hi, I'm trying to make an event instantly transfer to players position-

I had a nice system where I use the players map X and Y variables and the event's X and Y position, and once the summon is called, the summon has a Move route to the player on highest speed and once their X and Y positions are equal the event appears.

However, the issue with this is that if it's a big map and the player decides to use a summon, it'll take like 30 seconds for the summon to reach the player if they're on the other side of the map. So I figured maybe it's best to use a script call. I just can't find the right call for the event to instantly go to player's X and Y coordinates.

I tried
$game_map.events[85].x=$game_player.x
$game_map.events[85].y=$game_player.y

but it just ends up being a Syntax error. Anything else I can try to make this possible?

Thanks
Why use script calls at all?

There are event commands for this, just use control variable to get the x and y into to variables and then set event location.
$game_map.events[id].moveto(x,y)

event.x/.y are read-only.... you have to channel them through moveto()
Why use script calls at all?

There are event commands for this, just use control variable to get the x and y into to variables and then set event location.


OH! Completely forgot about set event location! It works great so far, thanks

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-event-transfer-to-players-position.89907/