I’m getting an Unknown Identifier’sfx1’. Error when i try to play a file called ‘sfx1.mp3’ and I’m too derpy to work out why, I’m guessing it’s because either it can’t find the file in the ‘Resources’ folder or it’s a string and can’t read it? Not sure…
function Start () {
var myClip:AudioClip;
myClip=sfx1;
audio.PlayOneShot(myClip);
}
Thank you so much you wonderful people!! Really appreciate your help! Now I’ve just gotta work out how to make the audio source play from the cameras position as the scrip is attached to another object, i hope to work that out soon, if not, ill be back