Hello! how i unspawn an event?
i tried the script call Galv.SPAWN.unspawn(4); but it don't work (4 is the spawned event's id)
it says obj.eventId is not a function
i did make a script call with this
let event = $gameMap.event(4);
Galv.SPAWN.unspawn(event);
but it doesn't do anything.. the spawned event is still there..
Are you certain that is the spawn event's id? It is not the same id as from the spawn map.
ohhh now i see what you meant..
so let's say i have 100 events on the map where the spawned event will be,
the erased number should be 101..?
If I recall it's getting the index of the event, which starts at 0, so if you have 100 events, it might spawn the next one at 100.
I would try to erase the event from the event itself using the script call, but doing that depends on how you're utilizing it.