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

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 21:54, 8 May 2016 by Robincode (talk | contribs) (Created page with "{{Note | This page is automatically generated. Any changes may be overwritten}} Category:Dota2Function Category:CDOTA_BaseNPC == Function Description == ''' void S...")
(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

void SetAbilityByIndex(handle hAbility, int iIndex)

change ability index.

Exmple

<source lua> local ability = hero:GetAbilityByIndex(0) hero:SetAbilityByIndex(ability,1) </source

Parameters

Type Name Description
handle hAbility No Description Set
int iIndex No Description Set