Combat engi quickbuild

Quickly build a sentry then switch back to your last used weapon

alias sentry "build 2;destroy 2; wait 5; +attack; wait 60; -attack; wait 61; lastinv"
alias +quickbuild "bind mouse2 sentry"
alias -quickbuild "bind mouse2 +attack2"
bind "shift" "+quickbuild"

First script.

This lets you quickly build a sentry then switch back to your last used weapon.

Use shift + mouse2 to use.

Known bugs:

Script causes you to attack after you switch weapons, I don't know how to fix this.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • ElPollolOco's Levels
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 3 years ago

    it is attacking because having an +attack and a -attack in the same alias tends to mess things up. You should also try to keep from having keybinds be altered from your code. would be better like this.

    bind mouse2 "+atk1" bind shift "+quickbuild" alias +atk1 "+atk2" ---mouse2 runs +atk2. holding shift makes it run +bild. alias -atk1 "-atk2" alias +atk2 "+attack2" alias -atk2 "-attack" alias +quickbuild "alias +atk1 +bild;alias -atk1 -bild" alias -quickbuild "alias +atk1 +atk2;alias -atk1 -atk2" alias +bild "destroy 2;wait 5;build 2;wait 5;+attack" alias -bild "-attack;lastinv"

    however if your going to dedicate 1 key to alter a different key for the sole purpose of accomplishing a single task it might be better to just have the first key accomplish it all by itself. better yet, to have a natural flow you might try a doubletap script. this could make the mouse2 key pull the task off by itself with 2 rapid taps without losing the +attack2 functionality. cheers-

    Boyah

Credits

Submitter
xBMuffin's Levels
  • C1: Member
  • A5: Veteran
    Account Age: 4 years
xBMuffin (Creator/Co-creator)
Key Authors
xBMuffin
Made the script

Rating

?/10
Not yet rated.

Stats

Post Count
1
ViewCount
1,866
Date Added
3 years ago
Date Modified
3 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share