function onCreated(){ this.on = false; } function onWeaponFired(){ if (this.on = false){ this.on = true; } if (this.on = true){ this.on = false; } } function onCreated(){ setTimer(.1); } function onTimeout(){ if (this.on = true){ player.alpha = 50; } if (this.on = false){ player.alpha = 100; } setTimer(.1); }
function onCreated(){this.on = false;}function onWeaponFired(){this.on = !this.on;player.alpha = (this.on) ? 50 : 100;}