# Call Unit Ability Tactical Script

Grammar — Run Unit Ability Tactical Script(unit,scrip,scanGroup,ability,item)
FlagsNative | Action

# Arguments

  • unit — Unit
  • string — Scrip
  • unitgroup — Scan Group
  • string<gamelink::Abil> — Ability
  • unit — Item

Returns — void

native void AIExecuteAbilTactical(
	unit inUnit,
	string scrip,
	unitgroup scanGroup,
	string ability,
	unit item,
);

Category: AI Advanced / Tactical / Actions

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:642

                lv_itAbilTact = CatalogFieldValueGet(c_gameCatalogAbil, lv_itAbilLink, "TacticalAIFunc", lp_owner);
                if ((StringLength(lv_itAbilTact) > 0)) {
                    AIExecuteAbilTactical(lp_aIUnit, lv_itAbilTact, lp_nearByUnits, lv_itAbilLink, null);
                }

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicTactical.galaxy:661

        if ((lv_itAbilLink != null)) {
            lv_itAbilTact = CatalogFieldValueGet(c_gameCatalogAbil, lv_itAbilLink, "TacticalAIFunc", lp_owner);
            AIExecuteAbilTactical(lp_aIUnit, lv_itAbilTact, lp_nearByUnits, lv_itAbilLink, lv_itItem);
        }