Dota 2 Workshop Tools/Scripting/API/CDOTA BaseNPC.SwapAbilities: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
 
(Dota_Lebot push: Updated Page)
Line 4: Line 4:




''' void SwapAbilities(string '''', string '''', bool '''', bool '''') '''
''' void SwapAbilities(string ''a'', string ''b'', bool ''c'', bool ''d'') '''


''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 17: Line 17:
|-
|-
| string
| string
|  
| a
| No Description Set
| No Description Set
|-
|-
| string
| string
|  
| b
| No Description Set
| No Description Set
|-
|-
| bool
| bool
|  
| c
| No Description Set
| No Description Set
|-
|-
| bool
| bool
|  
| d
| No Description Set
| No Description Set
|}
|}

Revision as of 00:16, 9 August 2014

Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

void SwapAbilities(string a, string b, bool c, bool d)

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 a No Description Set
string b No Description Set
bool c No Description Set
bool d No Description Set