Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.GetAbilityCount

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 20:48, 10 February 2020 by SoulSharD (talk | contribs) (Returns)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Note.png Note:  This page is automatically generated. Any changes may be overwritten

Function Description

int GetAbilityCount()

Limited functionality, this always returns the maximum number of abilities any unit can have. Despite what its function name implies, it does NOT return the current number of abilities the unit has registered.

The current maximum number of abilities is hard-coded to 32, using this function ensures consistency should Valve change it in the future.


int - The maximum number of abilities this unit can have. (Always 32)