Jump to content
  • Sign Up
2 votes
Guests cannot vote

Allow to access additional unit data in the AI script

  • Views: 144
  • Submitted:

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).

   kbUnitGet<dataType>(int unitID)

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

User Feedback

Recommended Comments

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...