Ai shooting script

I have a script for enemies in an fps but one of them shoots like 3 or 4 bullits depending on how many on the screen instead of the individual enemys firing heres my script so far thanks

var bullitPrefab:Transform;
var savedTime=0;
function Update ()
{

transform.LookAt(GameObject.Find("Player").transform.position);

var seconds : int = Time.time;
var oddeven = (seconds % 2);

if(oddeven)
{
shoot(seconds);
}

}

 
   function shoot(seconds)
  {
if(seconds!=savedTime)
{

var bullit = Instantiate(bullitPrefab,GameObject.Find("EnemySpawn").transform.position,Quaternion.identity);

bullit.rigidbody.AddForce(transform.forward * 10000);

savedTime=seconds;
}
}

//if the script is attached to player do this instead

var bullit = Instantiate(bullitPrefab,transform.position,Quaternion.identity);