Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.GetAbilityCount: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
(Undo revision 190738 by RoyAwesome (talk)) |
|||
Line 8: | Line 8: | ||
''' int GetAbilityCount() ''' | ''' 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.'' | |||
== Returns == | == Returns == | ||
''int'' - No Description Set | ''int'' - No Description Set |
Revision as of 21:47, 10 February 2020

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.
Returns
int - No Description Set