• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Melee attack range

Status
Not open for further replies.
Level 4
Joined
Jan 5, 2014
Messages
79
Hello, when a melee unit attacks another unit and the attacked unit moves away, sometimes it is hit and sometimes the attacking unit misses. Can i find out somehow, how far must the attacked unit be from the attacker to be missed?
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
Hello, when a melee unit attacks another unit and the attacked unit moves away, sometimes it is hit and sometimes the attacking unit misses. Can i find out somehow, how far must the attacked unit be from the attacker to be missed?

You can set this value in "Combat - Attack x - Range Motion Buffer". Default is 250.
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
This is also somewhat affected by the units own range. In a map of mine I have one unit type with a very short melee range and it can't hit moving targets. Yet, all others can in most cases.

In short the range motion buffer is just the range a target may walk beyond max range of the attacker to still getting hit/have a projectile released. So of course attack range affects whether a target is hit.
 
Status
Not open for further replies.
Top