MOBA Tower and minion targeting, and Player auto attack(league like)

If someone could help me with this, how do i have things like “towers” and “npcs” target and attack things.

Also does anyone know how to code something like the normal non ability point and click attacks that champions/players can do in league of legends? Or if anyone can direct me to videos that could help me figure these things out.

Here’s some stuff about towers/turrets from League

I made it to the seventh episode within this series and his were already killing stuff. Had quite an few issues in terms of projectiles, though.

Also found some stuff about the minion AI, but it’s on hiatus

But with that kind of stuff, I don’t have an complete series for that, yet. I think that Ryan might have done something like this in his (unfinished) RTS series.

Edit: Found something that covers the basics of movement and ranged attacks.

But I can’t seem to find anything on the autoattacks,though