- Home /
Irrelevant
Trigger a sound 8 times then press r to fix
Ok well Macfanpro answered how to do this for a shooting script, but the sound is seperate.
var shootSound:AudioClip;
function Update(){ if (Input.GetButtonDown("Fire1")) { audio.PlayOneShot(shootSound); } }
Well thats my audio script. Can you have it so you can trigger this sound 8 times then press r to make it so you can do 8 more times?
Use the solution $$anonymous$$acfanpro provided you for the last one. It's literally a case of copy/paste.
Yes sorry i was unaware he edited it to make it work. How do i remove my own question without giving me bad karma?
Click delete. It's a button below the end of your question and the tags, but above the comments.
Follow this Question
Related Questions
unity3d read data from PostgreSQL 0 Answers
How to access 'hardware' buttons on Android? [solved] 0 Answers
Animation or Programming 1 Answer
How do i loop my script so it continuously does what is inside it? 2 Answers
Ai Can it be smarter? 1 Answer