Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SwapAbilities: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
Line 6: | Line 6: | ||
''' void SwapAbilities(string '' | ''' void SwapAbilities(string ''pAbilityName1'', string ''pAbilityName2'', bool ''bEnable1'', bool ''bEnable2'') ''' | ||
''Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, ''bool'' bEnable1, ''bool'' bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.'' | ''Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, ''bool'' bEnable1, ''bool'' bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.'' | ||
Line 19: | Line 19: | ||
|- | |- | ||
| string | | string | ||
| | | pAbilityName1 | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| string | | string | ||
| | | pAbilityName2 | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| bool | | bool | ||
| | | bEnable1 | ||
| No Description Set | | No Description Set | ||
|- | |- | ||
| bool | | bool | ||
| | | bEnable2 | ||
| No Description Set | | No Description Set | ||
|} | |} |
Revision as of 01:33, 20 June 2015

Function Description
void SwapAbilities(string pAbilityName1, string pAbilityName2, bool bEnable1, bool bEnable2)
Swaps the slots of the two passed abilities and sets them enabled/disabled: const char* AbilityName1, const char* AbilityName2, bool bEnable1, bool bEnable2. The boolean controls which ability is active. The ability order is never swapped when swapping abilities, only the boolean statements are flipped.
Parameters
Type | Name | Description |
---|---|---|
string | pAbilityName1 | No Description Set |
string | pAbilityName2 | No Description Set |
bool | bEnable1 | No Description Set |
bool | bEnable2 | No Description Set |