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) |
Thunder4ik (talk | contribs) m (clean up, added deadend tag) |
||
Line 1: | Line 1: | ||
{{Dead end|date=January 2024}} | |||
{{Note | This page is automatically generated. Any changes may be overwritten}} | {{Note | This page is automatically generated. Any changes may be overwritten}} | ||
== Function Description == | == Function Description == | ||
''' void SwapAbilities(string ''pAbilityName1'', string ''pAbilityName2'', bool ''bEnable1'', bool ''bEnable2'') ''' | ''' 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.'' | ||
== Parameters == | == Parameters == | ||
Line 34: | Line 31: | ||
| No Description Set | | No Description Set | ||
|} | |} | ||
[[Category:Dota2Function]] | |||
[[Category:CDOTA_BaseNPC]] |
Latest revision as of 09:20, 21 January 2024

This article has no
links to other VDC articles. Please help improve this article by adding links
that are relevant to the context within the existing text.
January 2024


January 2024

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 |