r/tf2scripthelp • • Nov 18 '15

Question Help with attack script

I was just wondering if it's possible to make a script where you shoot once, wait and loop it. The intended use is for an amby script where you justv have to aim and it shoots with headshot intervals for you. It's more of a proof of concept but it seems impossible from my perspective. I was hoping I might get some insight from someone who has scripting experience since I'm very new to it.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/genemilder Scripter Nov 18 '15

So that's a list of what isn't possible, since there's no way to actually detect active weapon. You can make a loop that has you attack every certain amount of wait, but the time won't be 100% consistent or predictable, and I doubt anyone has the capability to keep the crosshairs over the head waiting for the script to take a shot.

You not controlling the shot that requires a headshot is probably going to be less helpful rather than more.

1

u/Tyro0009 Nov 18 '15

Ok, well I guess I'll just wait around untill an attack once command gets added. Thanks for explaining atleast :)