Hello. This is a pretty basic question. Currently I have a 3D sound source mounted on the camera, so that works, but what if I want to have a script control it so it can be dynamic? Can I please have a script that lets you assign a sound (I am using a .mp3 currently for testing- I will convert it to an ogg later) to a variable, then will play the sound when a variable 0 turns to 1 or false turns to true? I would also like to know how to make it loop, if convenient. This would be handy so I could go from there. Thank you! P.S. Please say if the script given is a 3D sound to attach to the object, as I want to add sounds from a given source later. Thank you! Happy New Years!
-Keavon
P.P.S. Javascript would be preferred. :P