Hello, you. Yes you!
I have searched a little bit, but I am unable to find and questions or answers about “Bursts”. For those that do not know burst are(in this case) 3 shot fired with just a slight delay between each other when the trigger is pulled.
I tried something like this:
var sound : AudioClip;
function Shoot () //Ran from function Update.
{
audio.PlayOneShot(sound);
yield WaitForSeconds(0.2);
audio.PlayOneShot(sound);
yield WaitForSeconds(0.2);
audio.PlayOneShot(sound);
}
But no luck now the function wont execute at all, but even if it did it will look ugly and “not cool”. I know I can use for´s for(var blah blah), but there is no delay between those.
So dear community is there a way in a relatively easy manner that we can create a burst effect?
Legion.