Help with Click/Sound Script:)??

I have this script almost working but I don’t know what could be wrong, I need that when the player gets into the trigger of an object and then clicks on it, a sound gets played. The object is a cube, with a cubecollider with the option Is Trigger activated and my player has the tag Player…What could be wrong?, it doesn’t play…:frowning:
This is the script:

var shootSound:AudioClip;

function OnTriggerEnter (Col : Collider)
{
if(Col.tag == “Player”)
if(Input.GetKeyDown(KeyCode.Mouse0)){
audio.PlayOneShot(shootSound);
}
}

Two things,

  1. if the sound file in the project is marked as a 3D Sound, I have found this makes the sound volume extremely low. Check the file in the inspector.
  2. I never use PlayOneShot(), however, that may be besides the point. What I do do, is assign the audio.
audio.clip = someAudioClip;
audio.Play();

I solved it, thanks:)