Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Triggers/Events/Unit Uses Ability

From SC2Mapster Wiki
Jump to: navigation, search

Unit-Abilities

Unit Uses Ability

GUI

Unit - unit uses ability at stage stage (includeSharedAbilities|Include/Ignore shared abilities)

Galaxy Code

void TriggerAddEventUnitAbility (trigger t,unitref u,abilcmd a,int stage,bool includeSharedAbils)

Description

This event fires when a unit uses an ability. Use "Triggering Ability" to get the ability that was used. Use "Triggering Ability Stage" to get the stage the ability was in when the event fired. Use "Triggering Ability Target Point" to get the target point for the ability. Use "Triggering Ability Target Unit" to get the target unit for the ability. Use "Triggering Player" to get the player that used the ability. Use "Triggering Unit" to get the unit that used the ability.

Parameters