Im using a plugin called Galv's Event Spawner MZ. I want to know how I could use javascript to spawn an event at the players coordinates. I tried the following but it didn't work
MZ How to spawn event at player's coordinates?
Javascript/Plugin SupportHi there!
The location data does not support javascript code, only the number. That's why it is not working.
Use the script call instead:
Galv.SPAWN.event(EventId, 'Location Type', [X ,Y], 'Overlap Type')
In your case, something like that:
The location data does not support javascript code, only the number. That's why it is not working.
Use the script call instead:
Galv.SPAWN.event(EventId, 'Location Type', [X ,Y], 'Overlap Type')
In your case, something like that:
Galv.SPAWN.event(1, 'xy', [$gamePlayer.x ,$gamePlayer.y], 'all')Original thread: https://forums.rpgmakerweb.com/threads/how-to-spawn-event-at-players-coordinates.151508/