Yes that's exactly what a triggerbot does; it shoots automaticlaly for you once an enemy is in your reticle.
There are 2 common types of triggerbots (that i know of):
Pixel triggerbot:
Upon detecting a certain type of pixel colour, it will auto shoot once your reticle is aiming at that pixel
- e.g. your team is blue, enemy team is red; once that certain shade of red is within your reticle, it will shoot for you
--> This is cpu intensive since the triggerbot must constantly loop through all pixels on the reticle (assuming reticle is a cirle)
---> In addition to that, this method can also be used to produce a pixel aimbot (extremely cpu intensive)
Memory triggerbot:
When you aim at certain entities in the game, the memory address value of the aim changes (can be found through CE)
This is a much more effective method to produce a triggerbot since you constantly just scan for changes in that address
- e.g. An enemy comes within your reticle, this causes value of address to change, once that value changes, this triggers the script/program to shoot, thus producing a triggerbot
--> This is much less cpu intensive and i believe the best way to produce one