• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Exp Range

Status
Not open for further replies.
Level 30
Joined
Jul 31, 2010
Messages
5,246
hey :)
just want to ask about the melee game, I somehow notice killing enemy units using only units can still give exp to your heroes that is far away in a fight(ex. you left your hero in your townhall while you use your units to kill creeps away in your townhall), is this part of the game, or is it a bug? I can't remember a lot about melee games anymore

and in any change, is their a code that would only let heroes gain exp when killing units near them?
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
Go to Gameplay Constants and set "Hero XP - Global Distribution" to false.

For setting the xp range around the heroes use "Hero Maximum XP Gain Range".


e: if you're interested, maximum xp range does not take model size or collision size or any unit property into accout, its measured from center of the dying unit to the center of the xp gaining hero.
 
Status
Not open for further replies.
Top