Ranged Attacks
With a ranged weapon, you can shoot or otherwise attack a target that is within the weapon’s maximum range and in your line of effect (see page 271). You add your Dexterity modifier to your ranged attack rolls, but not to your ranged damage rolls.
Source
Core Rulebook pg. 245