Help With A Bind Command (right Mouse Button)

SenorDingDongSenorDingDong 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?

Comments

  • That_Annoying_KidThat_Annoying_Kid Sire of Titles Join Date: 2003-03-01 Member: 14175Members, Constellation
    Senior ding dong, you should have just rang!

    I think you want to wander over to the new scripting forum ^_^

    welcome back
  • SenorDingDongSenorDingDong Join Date: 2005-03-07 Member: 44220Members
    ive been looking.. havent found the exact command yet. i know it was something really simple.
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    edited March 2005
    Are you trying to write an alias that would toggle between slot 1 & 2? Try this:

    <!--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.
  • IsamilIsamil Join Date: 2003-11-25 Member: 23552Members, Constellation
    I think you might be looking for "bind mouse2 lastinv"
  • XtofXtof Join Date: 2003-04-15 Member: 15514Members
    edited March 2005
    Hi to everyone,
    <!--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
Sign In or Register to comment.