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

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 23:15, 8 August 2014 by RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

void SwapAbilities(string ', string ', bool ', bool ')

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 No Description Set
string No Description Set
bool No Description Set
bool No Description Set