- Home /
 
 
               Question by 
               GandalfOnTheRun · May 10, 2013 at 07:37 PM · 
                gunmuzzleflash  
              
 
              muzzle flash help
i made a muzzle flash, but i want it to "blink", how do i do that?
var Muzzle : GameObject;
function Start () {
Muzzle.active = false;
} function Update () {
 if(Input.GetButtonDown("Fire1")){
 animation.CrossFade("shoot");
 audio.Play();
 Muzzle.active = true;
 
 
               } if(Input.GetButtonUp("Fire1")){ animation.CrossFade("idle"); audio.Pause(); Muzzle.active = false;
} }
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Muzzle flash help 1 Answer
Gun Muzzle Flash 2 Answers
Target impact offset with gun 0 Answers
Muzzleflash Question 3 Answers
Particles not appearing on impact, muzzle flash problems? 2 Answers