i need a script that activates an audio source when the player walks into it. if you need to see the game just say so
I need a script for when the player walks into a collision for it to activate an audio source
You can use a trigger to detect when an entity enters a zone, and then activate the sound. Here is a tutorial on how to setup triggers:
Edit: Please avoid opening duplicates posts about the same subject!
ok thanks. and sorry
also i dont undestand how
So, the tutorial has instructions on how to add a collision/trigger component to your project. Did you read that?