[RPG] make a melee attack with a ranged weapon

attackdnd-5emelee-combatweapons

Are there any rules that preclude this action?

I know weapons with the Ammunition property are treated as improvised weapons per this line and this question:

If you use a weapon that has the ammunition property to make a melee attack, you treat the weapon as an improvised weapon .

… but what about darts and nets? Am I forced to use them as an improvised weapon to make this melee attack or can I simply make an attack with the ranged weapon (including any properties therein)?

Keep in mind, I am almost certain this isn't the intended result, but what is RAW?

Best Answer

Only as an improvised weapon.

From the description of improvised weapons in the rules (PHB, p. 147-148):

Sometimes characters don’t have their weapons and have to attack with whatever is close at hand. An improvised weapon includes any object you can wield in one or two hands, such as broken glass, a table leg, a frying pan, a wagon wheel, or a dead goblin.

In many cases, an improvised weapon is similar to an actual weapon and can be treated as such. For example, a table leg is akin to a club. At the DM’s option, a character proficient with a weapon can use a similar object as if it were that weapon and use his or her proficiency bonus.

An object that bears no resemblance to a weapon deals 1d4 damage (the DM assigns a damage type appropriate to the object). If a character uses a ranged weapon to make a melee attack, or throws a melee weapon that does not have the thrown property, it also deals 1d4 damage. An improvised thrown weapon has a normal range of 20 feet and a long range of 60 feet.

Rules designer Jeremy Crawford unofficially confirms this ruling on Twitter:

Can a Barb/Fighter use a Dart in melee (w/STR) to benefit from Rage and Archery Fighting Style? Ranged weapon, melee attack

If you use a weapon in a way contrary to its design (melee attack w/ a ranged weapon), see "Improvised Weapons" (PH, 147). DM's call.

Improvised dagger then? In accordance with the rules on that page?

If you turn the page, you'll see the standard thing to do with a ranged weapon being used as a melee weapon.

It seems clear that the intent is that any usage of a ranged weapon to make a melee attack (i.e. hitting them with the weapon itself) would involve your ranged weapon being treated as an improvised melee weapon, so the attack would follow the rules for improvised weapons. While the DM could house-rule otherwise, this is how such situations are handled by the rules.