# Triggering Ability
Grammar — Triggering ability
Flags —Native
|Function
Returns the triggering ability. Used in response to “Unit Uses Ability”.
Returns — abilcmd
native abilcmd EventUnitAbility();
# Supported triggers
- Unit Uses Ability — TriggerAddEventUnitAbility
- Unit Changes Ability Auto Cast State — TriggerAddEventUnitAbilityAutoCastChange
# Related
Category: Ability / Basic
- [F] —
void
— Remove Ability — ( UnitAbilityRemove ) - [F] —
void
— Add Ability — ( UnitAbilityAdd ) - [F] —
void
— Unit Uses Ability — ( TriggerAddEventUnitAbility ) - [F] —
void
— Unit Changes Ability Auto Cast State — ( TriggerAddEventUnitAbilityAutoCastChange ) - [F] —
abilcmd
— Triggering Ability — ( EventUnitAbility ) - [F] —
int
[ preset::AbilityStage ] — Triggering Ability Stage — ( EventUnitAbilityStage ) - [F] —
point
— Triggering Ability Target Point — ( EventUnitTargetPoint ) - [F] —
unit
— Triggering Ability Target Unit — ( EventUnitTargetUnit ) - [F] —
unit
— Triggering Ability Other Unit — ( EventUnitAbilityOtherUnit ) - [F] —
abilcmd
— Ability From Item or Trigger — ( libNtve_gf_EventItemAbilityOrUnitAbility ) - [F] —
void
— Unit Is Created — ( TriggerAddEventUnitCreated ) - [F] —
unit
— Created Unit — ( EventUnitCreatedUnit ) - [F] —
string
[ gamelink::Behavior ] — Behavior That Created Unit — ( EventUnitCreatedBehavior ) - [F] —
string
[ gamelink::Abil ] — Ability That Created Unit — ( EventUnitCreatedAbil ) - [F] —
void
— Show/Hide Ability For Unit — ( UnitAbilityShow ) - [F] —
bool
— Ability Enabled For Unit — ( UnitAbilityCheck ) - [F] —
int
— Number Of Abilities On Unit — ( UnitAbilityCount ) - [F] —
string
[ gamelink::Abil ] — Unit Ability — ( UnitAbilityGet ) - [F] —
string
[ gamelink::Abil ] — Unit Ability By Class — ( libNtve_gf_UnitAbilityGetByType ) - [F] —
bool
— Unit Ability Command State — ( UnitCheckAbilCmdState ) - [F] —
int
— Unit Ability Order State (Flags) — ( UnitAbilOrderStateFlags ) - [F] —
bool
— Unit Has Ability — ( UnitAbilityExists ) - [F] —
void
— Enable/Disable Ability For Unit — ( UnitAbilityEnable ) - [F] —
void
— Add Level To Unit Ability — ( UnitAbilityChangeLevel ) - [F] —
void
— Replace Unit Ability — ( UnitAbilityChangeLink ) - [F] —
void
— Set Ability Default Submenu — ( UnitAbilityChangeCardId ) - [F] —
int
— Current Level For Unit Ability — ( UnitAbilityGetLevel ) - [F] —
int
— Maximum Level For Unit Ability — ( UnitAbilityMaxLevel ) - [F] —
bool
— Ability Matches Filters — ( libNtve_gf_AbilityMatchesFilters ) - [F] —
string
[ gamelink::Abil ] — Unit Ability By Filters — ( libNtve_gf_UnitAbilityByFilters ) - [F] —
string
— Unit Ability Default Submenu — ( UnitAbilityGetCardId )
# Examples
# campaigns/void.sc2campaign
// L17204
EventUnitAbility()
// L6150
EventUnitAbility()
// L17204
EventUnitAbility()
// L6150
EventUnitAbility()
# campaigns/voidstory.sc2campaign
// L10899
EventUnitAbility()
// L10899
EventUnitAbility()
// L10900
EventUnitAbility()
// L10900
EventUnitAbility()
# mods/balancemulti.sc2mod
// L214
EventUnitAbility()
// L218
EventUnitAbility()
// L222
EventUnitAbility()
// L226
EventUnitAbility()
// L214
EventUnitAbility()
// L218
EventUnitAbility()
// L222
EventUnitAbility()
// L226
EventUnitAbility()
// L214
EventUnitAbility()
// L218
EventUnitAbility()
// L222
EventUnitAbility()
// L226
EventUnitAbility()
# mods/core.sc2mod
// L133
EventUnitAbility()
# mods/heroesdata.stormmod
// L10160
EventUnitAbility()
// L14195
EventUnitAbility()
// L14199
EventUnitAbility()
// L14203
EventUnitAbility()
// L14207
EventUnitAbility()
// L26096
EventUnitAbility()
// L26100
EventUnitAbility()
// L26104
EventUnitAbility()
// L26119
EventUnitAbility()
# mods/heroesdata.stormmod
// L4499
EventUnitAbility()
# mods/heromods/dva.stormmod
// L1379
EventUnitAbility()
# mods/heromods/samuro.stormmod
// L910
EventUnitAbility()
// L1472
EventUnitAbility()
// L1484
EventUnitAbility()
// L1494
EventUnitAbility()
# mods/heromods/tracer.stormmod
// L705
EventUnitAbility()
# mods/starcoop/starcoop.sc2mod
// L17039
EventUnitAbility()
// L17395
EventUnitAbility()
// L17431
EventUnitAbility()
// L19380
EventUnitAbility()
// L19412
EventUnitAbility()
// L25895
EventUnitAbility()
// L25929
EventUnitAbility()
// L31785
EventUnitAbility()
# mods/starcoop/starcoop.sc2mod
// L13994
EventUnitAbility()
# mods/voidmulti.sc2mod
// L214
EventUnitAbility()
// L218
EventUnitAbility()
// L222
EventUnitAbility()
// L226
EventUnitAbility()
# mods/warcoop/legends/jainaproudmoore.sc2mod
// L29
EventUnitAbility()