i am try to make a script that starts audio when i get into a certain area dos anyone know how to do this?
What have you got so far?
nothing i deleted it cuz there was so much stuff wrong with it but i do how this script. it only works for one position and when you go to that position it start play a lot of sounds
var clip :AudioClip;
function Update(){
AudioSource.PlayClipAtPoint(clip, Vector3 (101.162, 1, 97.67393));
}
Well, what I would do is use a trigger. Once the character enters the trigger, the audio plays.
and how do you do that hahah i am really bad at this
Make a gameobject, give it a box collider. Under collider properties, select is trigger. Then script OnTriggerEnter(){};!
o ok