Always what should be the simple things.
Trying to get my FPS player that when he walks over a "Meadow Muffin" that he says "Dag Gumit!"
I'm using this in my FPS player script:
function OnCollisionEnter (other : Collision) {
if (other.gameObject.name == "MeadowMuffin") {
audio.clip = meadowMuffinCurse;
audio.Play();
}
}
I have a varible set up as:
var meadowMuffinCurse : AudioClip;
And I've assigned the apropriate sound in the inspector
My "Meadow Muffin" even has a box collider which is set to "Trigger" but the sound does not play.