5

I was curious if it was possible to make a script where when I build a sentry it says something like "Sentry up" in chat?

3
  • When you say "build a sentry", you mean when it's up, right? In that case, I don't think you can.
    – Schism
    Commented Oct 8, 2018 at 6:16
  • What I mean is, in the pda section, when i pick the sentry and y'know, choose where I wish to put it, as soon as I click MOUSE1 to place it, could i bind that?
    – sethpls
    Commented Oct 8, 2018 at 6:29
  • Maybe you could just bind a message to a key and press it manually
    – Chocobouc
    Commented Oct 10, 2018 at 7:55

1 Answer 1

5

One idea is to do something like this:

bind mouse4 "build 2 0; wait 132; say_team Sentry up!"

This will make it so when you press MOUSE4 (forward on most mice), you'll pull up the diagram for a sentry, wait 132 ticks (2 seconds on most servers), then tell your team "Sentry up!". Note that you would still manually have to place the sentry with MOUSE1, and that the message is not actually tied to placing the sentry, so cancelling (or taking too long) would still result in such a message being sent.

You could also write a more complicated script, where pressing MOUSE4 (or whichever other key) would rebind MOUSE1 to place the sentry and also send the message, but that gets complicated (you'd want to undo this binding if you cancel, and you'd have to manually unbind it if you die during placement). Feel free to try and implement that yourself :-)

2
  • 1
    Or maybe rebind whenever you change weapons Commented Nov 18, 2018 at 4:57
  • Having a binding to destroy, select, then place sentry all in one go for minis could also be a good idea. You can cram a "Sentry up!" in there, probably at the end.
    – kkeey
    Commented Nov 20, 2019 at 3:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.