This gotta be easy. I have this script for my “dooropen” sound
var Trigger : AudioClip;
function OnTriggerStay(){ //when he enters the trigger zone
if (Input.GetKeyDown (“e”)) { //if he presses the E key
audio.Play(); //audio plays
}
}
But if the door is open a second sound shall be heard.
Cant get it to work. What shall the complete code look like?
/Thanks/