- Home /
Question is off-topic or not relevant
Car audio script
I'm using Edy's Vehicle Physics and i dno't have sound script, so i tried a lot to do, but got nothing. So I need a help, can anoyone give me a SIMPLE car sound script. thx anyway
This isn't the place for asking people to give you scripts. Feel free to ask for help if you have a specific scripting question that has a definitive answer, but "give me a script" isn't appropriate here.
O$$anonymous$$ can anyone correct this script to work with edy's vehicle physics
var iddle: AudioClip;
var acceleration: AudioClip;
var ralenti: AudioClip;
var rec: AudioClip;
var radio: AudioClip;
function Update() {
if (Input.Get$$anonymous$$eyDown ("up"))
audio.PlayOneShot(acceleration);
if (Input.Get$$anonymous$$eyUp ("up"))
audio.Pause();
if (Input.Get$$anonymous$$eyDown ("down"))
audio.PlayOneShot(rec);
if (Input.Get$$anonymous$$eyUp ("down"))
audio.Pause();
}
Upgrade to the latest version. Includes a full-featured sound script with working sample sounds for all cars.
Follow this Question
Related Questions
Array index is out of range - Why? 2 Answers
Car Tutorial #1 - Sound Broken 1 Answer
Make a noise when i crash into something 1 Answer
Engine Sound & Turbo 0 Answers
Car engine sound 1 Answer