Make it possible to retrieve additional unit data via a unit within the AI script. This is needed for advanced unit micro functionalities.
In particular: maximum range, minimum range, damage (all types), armor (all types), special attack recharge state, action target (The unit that is the target of the present action).
Examples of similar already existing methods: kbUnitGetCurrentHitpoints(), kbUnitGetMaximumHitpoints(), kbUnitGetPosition(), kbUnitGetOwner()
Also of interest: A bool function that returns whether a unit counters another.
kbUnitIsCounter(int unitID, int targetID)
Edited by JeHathor
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.