How to implement 360 degree combat system

Godot-4

I have been searching up everywhere but i cannot find it, maybe i am not searching up the right thing but i just came to reddit to ask and see if anybody knew. So I’m making a dungeon crawler sort of game or like a roguelike that is top-down and I’d love to implement a 360 degree melee system so you can swing your sword in all directions using your mouse. If anybody has recommendations for what i could do or a video i could watch that would be greatly appreciated.

I think this tutorial covers this somewhat:
Note that this is Godot3 and some things might have changed, but the overall idea, with the pivot node, should be the same