How should I make the attack function?

It could be classical combo action or maby attacks depending on, in with direction your strafing.

Ideas please tongue