Help With A Bind Command (right Mouse Button)
SenorDingDong
Join Date: 2005-03-07 Member: 44220Members
Hi I used to play NS in the summer and had a command i bound in console.
You pressed the right mouse button and it would switch to your second attack function (slot2) then when you pressed it again it would go back to slot1. (it would go it automatically not just highlight the slot in hud).
I totally forgot the command accept for the bind "mouse2" part.
Anyone help me?
You pressed the right mouse button and it would switch to your second attack function (slot2) then when you pressed it again it would go back to slot1. (it would go it automatically not just highlight the slot in hud).
I totally forgot the command accept for the bind "mouse2" part.
Anyone help me?
Comments
I think you want to wander over to the new scripting forum ^_^
welcome back
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias switch "switch2"
alias switch2 "slot2; alias switch switch1"
alias switch1 "slot1; alias switch switch2"
bind "mouse2" "switch"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
[EDIT] I might also add that it sounds like you want hud_fastswitch to be set to 1 - it removes the icon in the upper left corner of the screen.
<!--QuoteBegin-Isamil+Mar 7 2005, 10:54 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Isamil @ Mar 7 2005, 10:54 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I think you might be looking for "bind mouse2 lastinv"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Well this is not exactly true, though I agree that lastinvert would do the trick. You only have to select slot 1 first and then slot 2 and then use lastinvert, not big of a deal.
<!--QuoteBegin-SenorDingDong+Mar 7 2005, 10:24 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SenorDingDong @ Mar 7 2005, 10:24 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
You pressed the right mouse button and it would switch to your second attack function (slot2) then when you pressed it again it would go back to slot1. (it would go it automatically not just highlight the slot in hud).
<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
He is specifically asking for a script that toggles ONLY between slot 1 and slot 2. I'm not a script expert but I guess that what Dragonmech posted will do the trick.
I would suggest to SenorDingDong though to try to use lastinvert (if you don't know what it does: it switches between the two last weapons/slots you have selected) and see if it suits your demand.
Greetz,
XtOf
Edit: typo