You link doesn't work.
Anyway here is an example of how to do it.
It uses a tracker for each tower, that will trigger the tower when an enemy is within range. And will cause that tower to shoot. As it would in a game like Plants vs Zombies.