Need Help With A Script.

ClashenClashen Join Date: 2003-08-22 Member: 20087Members
<div class="IPBDescription">Binding Slot3 to MB2.</div> I'm a nub in all this scripting business so i don't know if it is blocked i B5, but w/a.


How do i bind the Slot3 weapon to MosueButton2?
eg, If i press Mouse2 i either Knife, Leap, Bilebomb etc.

And is it possible to make it switch back to the weapon i used before after i release Mouse2?



Mucho <span style='color:red'><3</span> for help, <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->

Comments

  • a_civiliana_civilian Likes seeing numbers Join Date: 2003-01-08 Member: 12041Members, NS1 Playtester, Playtest Lead
    edited September 2004
    <!--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 +slot3attack "slot3;wait;+attack"
    alias -slot3attack "-attack;wait;lastinv"
    bind mouse2 +slot3attack<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
    Should work, though I haven't tested it. Also, I believe this will be blocked by blockscripts.
  • invertedinverted Join Date: 2004-02-16 Member: 26619Members, NS1 Playtester
    yep blocked by blockscripts which is now default. Anyone know a way around it?
  • UrdUrd Join Date: 2003-05-25 Member: 16696Members, Constellation
    No way around, blockscripts kills everything.
  • ClashenClashen Join Date: 2003-08-22 Member: 20087Members
    <!--QuoteBegin-a civilian+Sep 5 2004, 09:14 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (a civilian @ Sep 5 2004, 09:14 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--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 +slot3attack "slot3;wait;+attack"
    alias -slot3attack "-attack;wait;lastinv"
    bind mouse2 +slot3attack<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
    Should work, though I haven't tested it. Also, I believe this will be blocked by blockscripts. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Thanks mate, exactly what i wanted <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
Sign In or Register to comment.