# Ability Enabled For Unit

Grammarabil is enabled for u
FlagsNative | Function

Returns true if the specified ability is enabled/disabled for the specified unit.

# Arguments

  • unit — Unit
  • string [ gamelink::Abil ] — Ability
  • bool [ preset::SelectDeselectState2 ] — Enabled

Returns — bool

native bool UnitAbilityCheck(
	unit inUnit,
	string inAbil,
	bool inEnabled,
);

Category: Ability / Basic

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L1074
UnitAbilityCheck(lp_hybrid, "ZHybridPsionicShockwave", true)
// L1093
UnitAbilityCheck(lp_hybrid, "HybridCPlasmaBlast", true)
// L1098
UnitAbilityCheck(lp_hybrid, "ZHybridGravitonPrison", true)
// L2586
UnitAbilityCheck(gv_dEHAKA, "Drag", false)
// L2733
UnitAbilityCheck(gv_dEHAKA, "DehakaMirrorImage", false)
// L1074
UnitAbilityCheck(lp_hybrid, "ZHybridPsionicShockwave", true)
// L1093
UnitAbilityCheck(lp_hybrid, "HybridCPlasmaBlast", true)
// L1098
UnitAbilityCheck(lp_hybrid, "ZHybridGravitonPrison", true)
// L2586
UnitAbilityCheck(gv_dEHAKA, "Drag", false)
// L2733
UnitAbilityCheck(gv_dEHAKA, "DehakaMirrorImage", false)
// L772
UnitAbilityCheck(lp_darkArchon, "HybridGeneralPhaseShift", true)
// L794
UnitAbilityCheck(lp_kerrigan, "MindBolt", true)
// L810
UnitAbilityCheck(lp_kerrigan, "PsionicLift", true)
// L829
UnitAbilityCheck(lp_kerrigan, "PrimalHeal", true)
// L4929
UnitAbilityCheck(gv_stukov, "StukovInfestedTerrans", true)
// L4961
UnitAbilityCheck(gv_stukov, "DevastatingShot", true)
// L5149
UnitAbilityCheck(gv_kerrigan, "PsionicLift", true)
// L5181
UnitAbilityCheck(gv_kerrigan, "MindBolt", true)
// L5188
UnitAbilityCheck(gv_kerrigan, "PrimalHeal", true)
// L518
UnitAbilityCheck(lp_artanis, "ArtanisLightningDash", true)
// L578
UnitAbilityCheck(lp_zagara, "Transfusion", true)
// L772
UnitAbilityCheck(lp_darkArchon, "HybridGeneralPhaseShift", true)
// L794
UnitAbilityCheck(lp_kerrigan, "MindBolt", true)
// L810
UnitAbilityCheck(lp_kerrigan, "PsionicLift", true)
// L829
UnitAbilityCheck(lp_kerrigan, "PrimalHeal", true)
// L4929
UnitAbilityCheck(gv_stukov, "StukovInfestedTerrans", true)
// L4961
UnitAbilityCheck(gv_stukov, "DevastatingShot", true)
// L5149
UnitAbilityCheck(gv_kerrigan, "PsionicLift", true)
// L5181
UnitAbilityCheck(gv_kerrigan, "MindBolt", true)
// L5188
UnitAbilityCheck(gv_kerrigan, "PrimalHeal", true)
// L518
UnitAbilityCheck(lp_artanis, "ArtanisLightningDash", true)
// L578
UnitAbilityCheck(lp_zagara, "Transfusion", true)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L101
UnitAbilityCheck(lp_darkArchon, "DarkArchonMindControl", true)
// L132
UnitAbilityCheck(lp_darkArchon, "DarkArchonConfusion", true)
// L170
UnitAbilityCheck(lp_highTemplarTaldarim, "VoidHighTemplarMindBlast", true)
// L197
UnitAbilityCheck(lp_highTemplarTaldarim, "VoidHighTemplarPsiOrb", true)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L4974
UnitAbilityCheck(libVCUI_gv_pU_GPUnit, AbilityCommandGetAbility(lv_indexCommand), true)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L3083
UnitAbilityCheck(lv_misha, "attack", false)

# mods/heroesdata.stormmod

GameLib.galaxy

// L8925
UnitAbilityCheck(lp_hero, "Mount", true)
// L8925
UnitAbilityCheck(lp_hero, "RehgarGhostWolfActivate", true)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L1384
UnitAbilityCheck(lp_oracle, "OracleRevelationV2", true)
// L1384
UnitAbilityCheck(lp_oracle, "OracleRevelationV2", true)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L1734
UnitAbilityCheck(lv_dropUnit, "move", true)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L13309
UnitAbilityCheck(lv_indexStructure, lv_structureAbility, true)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicTactical.galaxy

// L639
UnitAbilityCheck(lp_aIUnit, lv_itAbilLink, true)