How to combine alt-fire and fire(of 2 different weapons) into a single button press

team-fortress-2

I have 2 weapons for Scout, the Flying Guillotine and the Sandman. And since the sandman can Stun, and the Guillotine does crits vs. stunned players, I thought it would be really cool if I could bind the Middle mouse button to hit the ball and then throw the Guillotine.

However, this is not working. Could anyone help out?

I realised the code I had given previously was wrong, so I've removed it. Now I only need to know how to Alt-Fire the sandman and fire the Guillotine by pressing one button only. I now know how to do it using multiple buttons.

I've using these 2 websites for the scripting code:

Best Answer

What i and a lot of other people do for this kind of thing is use external macro-software and other things similar to that to perform these actions for us.

There is lots of software that can be found on the internet that can do this sort of thing. Like https://www.jitbit.com/macro-recorder/ for instance. The best thing to do is look around and see what works best for you.