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?
-
When you say "build a sentry", you mean when it's up, right? In that case, I don't think you can.– SchismCommented 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?– sethplsCommented Oct 8, 2018 at 6:29
-
Maybe you could just bind a message to a key and press it manually– ChocoboucCommented Oct 10, 2018 at 7:55
1 Answer
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 :-)
-
1
-
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.– kkeeyCommented Nov 20, 2019 at 3:11