salutations.
let me explain what kind of formula i need.
i want to say that when distance between two units is high, then variableX becomes lower (not under 0).
and when is low, then variableX becomes higher.
i dont want values lower than 0.
and note that there is only "- + x /"
im waiting for...
EDIT 2: Alright, so this system is tailored to my very specific needs and designed around my map. There's a good chance that this long wall of text won't be helpful to you, but maybe you can pull something out of it. Here's how I'm detecting Wall Bounces for Horizontal and Vertical facing walls...
function hAI_GetUnitFightPowerAgainstUnit takes unit u1, unit u2 returns real
local real sourceHp = GetWidgetLife(u1)
local real targetHp = GetWidgetLife(u2)
local real sourceWeaponDamage = hAI_GetUnitWeaponDamageToUnit(u1, 1, u2) // u1 weapon damage against u2
local real...
What is the formula to get the duration a unit need to travel to a point?
Example:
- Blood Mage has 200 movement speed point (from Object Editor).
- The distance of the path going to the target point is 1500.
Travel duration = ??
Additional Question
If the Blood Mage for example travel the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.