MV Storing Event X Y coordinates in an array?

I am making a simple ABS for fun. The projectile event ID is 1 whereas the enemies ID could be 2, 3, 4, etc. Instead of creating a bunch of or statements for collision detection could you do a: If EventX(1) = array[eventids] then do this action?
there is glav_projectiles (which can turn into a powerfull abs simple).
if you want evented, you can look into YEP_SelfVarSw for self variables
and switches.

otherwise, you could check for each event or notetag <enemy>
during a scriptcall to call this, so no need for each XY and enemy ID's

Original thread: https://forums.rpgmakerweb.com/threads/storing-event-x-y-coordinates-in-an-array.147984/