Hey sorry I didnt explain this right lol,
Cos i have a trigger but i need it to activate a sound when a Car goes over it cos i have cubes that can move everywhere but when they touch the trigger it activates the sound which i dont want i only want the Car to activate it
var audio1 : AudioClip;
var audio2 : AudioClip;
function OnTriggerEnter (other : Collider) {
if (other.gameObject.name == "Car"){
audio.clip = audio1;
audio.Play();
}
//Play another sound
audio.clip = audio2;
audio.Play();
}