Ability DeactivateModalAbility

From Dragon Age Toolset Wiki
Jump to: navigation, search

Deactivates a modal ability

int Ability_DeactivateModalAbility(
object oCaster,
int nAbility,
int nAbilityType = ABILITY_TYPE_INVALID
);
Parameters:
oCaster
The creature to deactivate the ability on
nAbility
the modal ability to deactivate
nAbilityType
the ability type of the modal ability
Returns:

TRUE if the ability was terminated successfully

Source:

Core Resources.ability_h

Description

Runs the spellscript for an ability with the EVENT TYPE SPELLSCRIPT DEACTIVATE event