Flamestrike
Legend
It does make a high charisma character dipping 2-3 levels into Warlock to get Eldritch Blast, Agonising Blast and Hex to be an effective base for a blasty build.
2-3 levels for a decent ranged attack isnt the best investment of three levels for mine.
Might be nice on a Barbarian, Monk or Paladin who suck at ranged attacks (particularly the latter with its high Cha score) but I wouldnt bother personally, instead taking 3 levels in fighter for a much better return at what youre already good at.
All full casters, Rogues, Rangers, Fighters etc are already pretty darn good ranged out the box, and I would rather just progress through those classes without dipping for access to higher level abilities (spells, feats, extra attack, sneak attack etc).