MZ Galv's map projectiles. Click to turn player to mouse position?

Turn to click.png

Loving this projectile plugin but I'm having some difficulty figuring this one out on my own since I don't really know JS all that much. How would I go about facing the on-map character towards the mouse position upon clicking? (4directions) I don't want the character to always face the mouse position, just after a left-click. I tried CT Bolt's touch detect plugin but its not what im looking for... I'd imagine the script would have something to do with
TouchInput._x; and TouchInput. _y; then running some kind of check with the screen position of the player?
Buuut, I have no freaking idea how to set that up. Thanks for looking into this, laser beams coming out the sprites back doesn't look all that great lol.
Bump

Original thread: https://forums.rpgmakerweb.com/threads/galvs-map-projectiles-click-to-turn-player-to-mouse-position.140022/