Creating a Damaging Flame-thrower

It is a pc game, and almost a first person shooter, it is a platform. But I want the animation to be prolonged as I fire the weapon, or shortened if released early, ect