# Set Tactical AI Think

Grammar — Set Tactical AI Think for player unitType to target which is isNative
FlagsAction

Sets a tactical AI think function for the specified unit for the specified player.

# Arguments

  • int — Player
  • string [ gamelink::Unit ] — UnitType
  • string — Target
  • bool [ preset::AINative ] — IsNative

Returns — void

void libNtve_gf_SetTacticalAIThink(
	int lp_player,
	string lp_unitType,
	string lp_target,
	bool lp_isNative,
);

Category: AI Advanced / Tactical / Actions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L9688
libNtve_gf_SetTacticalAIThink(gv_p04_HYBRID, "Hybrid", "", true)
// L903
libNtve_gf_SetTacticalAIThink(auto45497D82_var, "Ghost", "GhostAI", false)
// L910
libNtve_gf_SetTacticalAIThink(autoB6AD81FD_var, "Medic", "MedicAI", false)
// L2335
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_ScriptedTOSS, "TalDarimMothership", "", true)
// L900
libNtve_gf_SetTacticalAIThink(gv_p10_HYBRID_MANIFESTATIONS, "Maar", "", true)
// L9688
libNtve_gf_SetTacticalAIThink(gv_p04_HYBRID, "Hybrid", "", true)
// L903
libNtve_gf_SetTacticalAIThink(auto45497D82_var, "Ghost", "GhostAI", false)
// L910
libNtve_gf_SetTacticalAIThink(autoB6AD81FD_var, "Medic", "MedicAI", false)
// L2335
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_ScriptedTOSS, "TalDarimMothership", "", true)
// L900
libNtve_gf_SetTacticalAIThink(gv_p10_HYBRID_MANIFESTATIONS, "Maar", "", true)
// L1311
libNtve_gf_SetTacticalAIThink(autoD75B13A2_var, "Diamondback", "AIDiamondback", false)
// L1249
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION2, "HybridDominator", "AIHybridDominator", false)
// L4500
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "Ghost", "AIGhost", false)
// L4501
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "Diamondback", "AIDiamondback", false)
// L4502
libNtve_gf_SetTacticalAIThink(gv_pLAYER_05_DOMINION_GREEN, "Diamondback", "AIDiamondback", false)
// L4543
libNtve_gf_SetTacticalAIThink(gv_PLAYER_02_DOMINION_RED, "MengskDiamondback", "AIDiamondback", false)
// L4544
libNtve_gf_SetTacticalAIThink(gv_PLAYER_03_DOMINION_BLUE, "MengskDiamondback", "AIDiamondback", false)
// L4545
libNtve_gf_SetTacticalAIThink(gv_PLAYER_04_DOMINION_PURPLE, "MengskDiamondback", "AIDiamondback", false)
// L4546
libNtve_gf_SetTacticalAIThink(gv_PLAYER_05_DOMINION_TEAL, "MengskDiamondback", "AIDiamondback", false)
// L1311
libNtve_gf_SetTacticalAIThink(autoD75B13A2_var, "Diamondback", "AIDiamondback", false)
// L1249
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION2, "HybridDominator", "AIHybridDominator", false)
// L4500
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "Ghost", "AIGhost", false)
// L4501
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "Diamondback", "AIDiamondback", false)
// L4502
libNtve_gf_SetTacticalAIThink(gv_pLAYER_05_DOMINION_GREEN, "Diamondback", "AIDiamondback", false)
// L4543
libNtve_gf_SetTacticalAIThink(gv_PLAYER_02_DOMINION_RED, "MengskDiamondback", "AIDiamondback", false)
// L4544
libNtve_gf_SetTacticalAIThink(gv_PLAYER_03_DOMINION_BLUE, "MengskDiamondback", "AIDiamondback", false)
// L4545
libNtve_gf_SetTacticalAIThink(gv_PLAYER_04_DOMINION_PURPLE, "MengskDiamondback", "AIDiamondback", false)
// L4546
libNtve_gf_SetTacticalAIThink(gv_PLAYER_05_DOMINION_TEAL, "MengskDiamondback", "AIDiamondback", false)
// L2731
libNtve_gf_SetTacticalAIThink(gv_pLAYER_05_PROTOSS_ARMADA, "WarpPrism", "AIWarpPrism", false)
// L2732
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_ZERG_GREEN, "Overseer", "AIOverseer", false)
// L2733
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_ZERG_RED, "Overseer", "AIOverseer", false)
// L2734
libNtve_gf_SetTacticalAIThink(gv_pLAYER_04_ZERG_PINK, "Overseer", "AIOverseer", false)
// L2735
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_TALDARIM, "AlarakChampion", "AIAlarak", false)
// L2736
libNtve_gf_SetTacticalAIThink(gv_pLAYER_08_NERAZIM, "StalkerShakuras", "AINerazimStalker", false)
// L2737
libNtve_gf_SetTacticalAIThink(gv_pLAYER_08_NERAZIM, "VorazunChampion", "AIVorazun", false)
// L2738
libNtve_gf_SetTacticalAIThink(gv_pLAYER_09_PURIFIER, "KaraxChampion", "AIKarax", false)
// L3688
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "HybridNemesis", "AIHybridNemesis", false)
// L5630
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION5, "KerriganVoid", "AIKerrigan", false)
// L3884
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION2, "ArtanisVoid", "AIArtanis", false)
// L3885
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "ZaGara", "AIZagara", false)
// L2731
libNtve_gf_SetTacticalAIThink(gv_pLAYER_05_PROTOSS_ARMADA, "WarpPrism", "AIWarpPrism", false)
// L2732
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_ZERG_GREEN, "Overseer", "AIOverseer", false)
// L2733
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_ZERG_RED, "Overseer", "AIOverseer", false)
// L2734
libNtve_gf_SetTacticalAIThink(gv_pLAYER_04_ZERG_PINK, "Overseer", "AIOverseer", false)
// L2735
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_TALDARIM, "AlarakChampion", "AIAlarak", false)
// L2736
libNtve_gf_SetTacticalAIThink(gv_pLAYER_08_NERAZIM, "StalkerShakuras", "AINerazimStalker", false)
// L2737
libNtve_gf_SetTacticalAIThink(gv_pLAYER_08_NERAZIM, "VorazunChampion", "AIVorazun", false)
// L2738
libNtve_gf_SetTacticalAIThink(gv_pLAYER_09_PURIFIER, "KaraxChampion", "AIKarax", false)
// L3688
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "HybridNemesis", "AIHybridNemesis", false)
// L5630
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION5, "KerriganVoid", "AIKerrigan", false)
// L3884
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION2, "ArtanisVoid", "AIArtanis", false)
// L3885
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DOMINION, "ZaGara", "AIZagara", false)
// L4711
libNtve_gf_SetTacticalAIThink(gv_pLAYER_05_TALDARIM, "Oracle", "AIOracle", false)
// L4712
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_ZERG, "Ravager", "AIRavager", false)
// L4713
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_ZERG, "SporeCrawlerUprooted", "AISporeCrawler", false)
// L4714
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_ZERG, "Ravager", "AIRavager", false)
// L4715
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_ZERG, "SporeCrawlerUprooted", "AISporeCrawler", false)
// L7866
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_PROTOSS_BULLIES, "Oracle", "AIOracle", false)
// L7867
libNtve_gf_SetTacticalAIThink(gv_pLAYER_04_PROTOSS_WAVES, "Oracle", "AIOracle", false)
// L2347
libNtve_gf_SetTacticalAIThink(gv_pLAYER_04_XANTHOS, "NovaXanthosAssault", "AIXanthosFinalForm", false)
// L4507
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DEFENDERSWEST, "Ghost", "AIGhost", false)
// L4508
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DEFENDERSWEST, "GhostAcademy", "AIGhostAcademy", false)
// L4509
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_DEFENDERSEAST, "Ghost", "AIGhost", false)
// L4510
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_DEFENDERSEAST, "GhostAcademy", "AIGhostAcademy", false)
// L4511
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_DEFENDERSNORTH, "Ghost", "AIGhost", false)
// L4512
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_DEFENDERSNORTH, "GhostAcademy", "AIGhostAcademy", false)
// L4513
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_DOMINION, "NovaHyperion", "AIHyperion", false)
// L4514
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DEFENDERSWEST, "Battlecruiser", "AIBattlecruiser", false)
// L4515
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_DEFENDERSEAST, "Battlecruiser", "AIBattlecruiser", false)
// L4711
libNtve_gf_SetTacticalAIThink(gv_pLAYER_05_TALDARIM, "Oracle", "AIOracle", false)
// L4712
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_ZERG, "Ravager", "AIRavager", false)
// L4713
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_ZERG, "SporeCrawlerUprooted", "AISporeCrawler", false)
// L4714
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_ZERG, "Ravager", "AIRavager", false)
// L4715
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_ZERG, "SporeCrawlerUprooted", "AISporeCrawler", false)
// L7866
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_PROTOSS_BULLIES, "Oracle", "AIOracle", false)
// L7867
libNtve_gf_SetTacticalAIThink(gv_pLAYER_04_PROTOSS_WAVES, "Oracle", "AIOracle", false)
// L2347
libNtve_gf_SetTacticalAIThink(gv_pLAYER_04_XANTHOS, "NovaXanthosAssault", "AIXanthosFinalForm", false)
// L4507
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DEFENDERSWEST, "Ghost", "AIGhost", false)
// L4508
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DEFENDERSWEST, "GhostAcademy", "AIGhostAcademy", false)
// L4509
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_DEFENDERSEAST, "Ghost", "AIGhost", false)
// L4510
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_DEFENDERSEAST, "GhostAcademy", "AIGhostAcademy", false)
// L4511
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_DEFENDERSNORTH, "Ghost", "AIGhost", false)
// L4512
libNtve_gf_SetTacticalAIThink(gv_pLAYER_06_DEFENDERSNORTH, "GhostAcademy", "AIGhostAcademy", false)
// L4513
libNtve_gf_SetTacticalAIThink(gv_pLAYER_07_DOMINION, "NovaHyperion", "AIHyperion", false)
// L4514
libNtve_gf_SetTacticalAIThink(gv_pLAYER_02_DEFENDERSWEST, "Battlecruiser", "AIBattlecruiser", false)
// L4515
libNtve_gf_SetTacticalAIThink(gv_pLAYER_03_DEFENDERSEAST, "Battlecruiser", "AIBattlecruiser", false)