Looping sound on trigger enter

Hello, i don’t know what im doing wrong i need looped sound every 1 second, when object with tag Enemy is in trigger. It’s working but sound is played too often (like 1000/minute) i need playing it like every 1 second.

Here is code

var tracking : AudioClip;
var other : GameObject;

function OnTriggerStay(other){
		if (other.gameObject.tag == "Enemy") {
        GetComponent.<AudioSource>().PlayOneShot(tracking, 1.0/ GetComponent.<AudioSource>().volume);
        Debug.Log("EnemyIsHere");
       	yield WaitForSeconds(1);
        }
     
}

Yield won’t work as it pushes everything inside OnTriggerStay every frame. Try this instead:

var timer : float = 1;
private var _storedCountdown : float;

var tracking : AudioClip;
var other : GameObject;

function Start() {
    _storedCountdown = timer;
{

function OnTriggerStay(other){

    if (other.gameObject.tag == "Enemy") {
             
        timer -= Time.deltaTime;
             
        if (timer <= 0) {
            GetComponent.<AudioSource>().PlayOneShot(tracking, 1.0/ GetComponent.<AudioSource>().volume);
            Debug.Log("EnemyIsHere");

            timer = _storedCountdown;
        }
    }
}

It should run every second.