projectileX and projectileY should be a variable reference because you don't know where the projectile will hit and the location is dependent on from where it was fired and the direction.
Also spawnMapId is the rock event Id on the spawn map, not the map Id. I guess I should've named it spawnMapEventId to be more clear.