Can I make Ai using only a focus script and a bullet script?

Basically, the AI uses colliders and when a player enters a collider the enemy AI Activates and will focus/lock on to the player and then shoot using the bullet script.

Through very careful programming.