• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:48
CEST 10:48
KST 17:48
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins Maestros of the Game 222ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7
Community News
MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon315.0.16 Hotfix (June 30) - Balance + Bug Fixes38Weekly Cups (June 22-28): Zergs thrive in new patch5[TLMC] Summer 2026 Ladder Map Rotation05.0.16 patch for SC2 goes live (8 worker start)99
StarCraft 2
General
Serral wins Maestros of the Game 2 StarCraft Mass Recall: SC1 campaigns on SC2 thread 5.0.16 Hotfix (June 30) - Balance + Bug Fixes IP For new Brazil servers for NA Players Server Blocker
Tourneys
HomeStory Cup 29 Vespene Cup #1 — $300+ USD, July 10 Douyu Cup 2026: $20,000 Legends Event (June 26-28) Crank Gathers Season 4: BW vs SC2 Team League RSL Revival: Season 6 - Qualifiers and Main Event
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 532 Nuclear Family Mutation # 531 Experimental Artillery Mutation # 530 One For All
Brood War
General
Snow On New ASL S22 Map, Zerg Nerf ASL 22 Proposed Map Pool BW General Discussion Farewell Beloved Starcraft (Youtube Videos) FlaShFTW vs A.Alm Grudge Match Event
Tourneys
CSLAN 4 is Coming! Escore Tournament StarCraft Season 2 The Casual Games of the Week Thread [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration?
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Summer Games Done Quick 2026! ZeroSpace at Steam NextFest - Last free demo
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
Five o'clock TL Mafia NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread TL Mafia Power Rank Vanilla Mini Mafia
Community
General
US Politics Mega-thread YouTube Thread Russo-Ukrainian War Thread Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Cricket [SPORT]
World Cup 2022
Tech Support
How to clean a TTe Thermaltake keyboard? Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Listen To The Coaches!
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3436 users

SC2 Targeting AI

Forum Index > SC2 General
Post a Reply
1 2 Next All
broke
Profile Blog Joined June 2010
39 Posts
September 09 2010 21:15 GMT
#1
I was wondering if anyone knew if preferential targeting applied to units with 'special' attacks.

Will the immortal prefer to target the roach over a zergling and thus gain the bonus damage
from vs. armored attacks, and likewise, will the ghost prefer to target light targets as
opposed to armored ones? Or will these units simply target randomly if they are
left unchecked?

As I understand it the tank AI isn't that retarded, so basically I'm wondering if that AI
extends to other units. I've dug around on the internets but haven't found a clear answer.
(see: http://wiki.teamliquid.net/starcraft2/Attack_Target_Priority)
cAPS
Profile Blog Joined April 2010
United States153 Posts
Last Edited: 2010-09-09 21:17:48
September 09 2010 21:17 GMT
#2
On September 10 2010 06:15 broke wrote:
these units simply target randomly (the closest target) if they are left unchecked

CidO
Profile Joined June 2010
United States695 Posts
Last Edited: 2010-09-09 22:21:07
September 09 2010 21:19 GMT
#3
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).

edit: I didn't mean they picked and chose their shots in a smart manner. They hit instantly and if 1 tank is enough to kill 1 marine and 3 are at perfect range to see it at the exact same moment, one will fire.
:P
epik640x
Profile Joined May 2010
United States1134 Posts
September 09 2010 21:20 GMT
#4
Hmm, if everything just targets whatever is closest I feel better about having lings and roaches in front of Hydras.

But still the Hydras seem to go down so fast :/
R0YAL
Profile Blog Joined September 2009
United States1768 Posts
Last Edited: 2010-09-09 21:40:15
September 09 2010 21:23 GMT
#5
Hm thats a good question but afaik they just attack whatever has the highest priority. I don't believe the liquidpedia page is correct with the numbers because i'v tested some of this stuff out. For example Stalkers vs Marauder/Medivac, the Stalkers will attack the Medivacs first and then the Marauders. Please correct me if i'm mistaken
On September 10 2010 06:20 epik640x wrote:
Hmm, if everything just targets whatever is closest I feel better about having lings and roaches in front of Hydras.

But still the Hydras seem to go down so fast :/


They dont attack whats closest.. SC2 has a threat system so higher tier units get taken over priority over lower tier (within range).
Absence of evidence is not evidence of absence.
Mikami_
Profile Blog Joined July 2009
Estonia274 Posts
September 09 2010 21:23 GMT
#6
My zealots always want to attack my opponents zealot/stalker instead of probes, even if they are far away..
JinDesu
Profile Blog Joined August 2010
United States3990 Posts
Last Edited: 2010-09-09 21:25:42
September 09 2010 21:25 GMT
#7
On September 10 2010 06:19 CidO wrote:
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).


Sorta - they don't overkill, but it doesn't change their attack selection preference.

On September 10 2010 06:23 Mikami_ wrote:
My zealots always want to attack my opponents zealot/stalker instead of probes, even if they are far away..


That's because your opponent's zealots/stalkers have aggro, while their mining probes don't. Now, if their probes attacked you....
Yargh
J7S
Profile Joined March 2009
Brazil179 Posts
September 09 2010 21:32 GMT
#8
On September 10 2010 06:23 R0YAL wrote:
Hm thats a good question but afaik they just attack whatever has the highest priority.
Show nested quote +
On September 10 2010 06:20 epik640x wrote:
Hmm, if everything just targets whatever is closest I feel better about having lings and roaches in front of Hydras.

But still the Hydras seem to go down so fast :/


They dont attack whats closest.. SC2 has a threat system so higher tier units get taken over priority over lower tier (within range).


If the Attack Target Priority page in liquipedia is correct, then this is not true. All units have the same priority. I'm thinking it should good to take some overlords along with the army to serve as some meat shield.
"Mein Führer, I can walk!" - Dr. Strangelove
pilsken
Profile Joined April 2010
Germany441 Posts
September 09 2010 21:32 GMT
#9
Tanks do not have smart AI. Tanks just don't have a projectile, so they hit instantly, making it impossible for other tanks to shoot the same target. It's not smart. You just cannot target something thats dead and since the zergling dies instantly after the first tank shoots, the next tank will simply aquire a new target. Units with delay between shooting animation and the damage dealing will still overkill as usual as you can see with Stalkers, Hydras, Roaches, Marauders etc. There really is no different AI working.

I assume the auto-attack targeting is the closest unit, unless it can't hit that and will then take the next target. Exeptions seem to be repairing SCV.

blitzkrieger
Profile Joined September 2010
United States512 Posts
September 09 2010 21:33 GMT
#10
On September 10 2010 06:19 CidO wrote:
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).


No no no no...

People say tanks are IMBA b/c they smartfire which is true (but being fixed). But its not TANKS that smartfire. Its ANY unit that has an INSTANT attack, aka marines, immortals, etc. Unit like stalker or banshees have missiles that take time to hit so they will not overkill. Since tank shots are instant they don't overkill.
Lexvink
Profile Blog Joined May 2010
Canada310 Posts
September 09 2010 21:35 GMT
#11
On September 10 2010 06:19 CidO wrote:
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).


Reapers and Marines have smart AI, not sure what other units have it though.
R0YAL
Profile Blog Joined September 2009
United States1768 Posts
September 09 2010 21:39 GMT
#12
On September 10 2010 06:35 Lexvink wrote:
Show nested quote +
On September 10 2010 06:19 CidO wrote:
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).


Reapers and Marines have smart AI, not sure what other units have it though.

Any unit without a projectile attack has "Smart AI."
Absence of evidence is not evidence of absence.
Piousflea
Profile Joined February 2010
United States259 Posts
Last Edited: 2010-09-09 21:51:51
September 09 2010 21:50 GMT
#13
From what I understand, in SC2 most units have equal target priority. This means that units will autoattack the closest valid target. They don't make any special preference to unit type, immortals can definitely waste a lot of shots on zealots even though stalkers are within range. I am not 100% sure, but burrowed zerg units may have a lower target priority and static defenses may have a higher target priority.

So-called "smart firing" is a completely different phenomenon, and has to do with the change in unit AI.

In SC1, units do something like this:
1) (Every frame, while idle and ready to fire) Check if any valid targets are in range. If so, start attack animation.
2) (0.1sec later) Deal damage.
3) (0.3sec later) Attack animation finishes.

In SC2 it's more like this:
1) (Every frame, while idle and ready to fire) Check if any valid targets are in range. If so, start attack animation.
2) (Every frame, while attack animation is going but before damage is dealt) Check if target is dead/untargetable/invulnerable. If so, stop attack animation and return to #1.
3) (0.1sec later) Deal damage.
4) (0.3sec later) Attack animation finishes.

The SC2 attack process leads to two peculiarities:
i) All units instantly retarget when their target dies. This means that a unit with an instant attack will never waste attacks on overkill. However, units with slow projectile attacks can still overkill. (Vikings are really bad for this)
ii) It is possible for a unit to play part of its attack animation, have its target die, then immediately repeat its attack animation and hit a different target. This phenomenon is most visible on the Immortal due to its huge muzzle flash animation, and looks like the animation is stuttering.

Despite the nickname "smart firing", I think auto-retargeting is quite stupid. IMO, Blizzard should change unit AI so that it is no longer able to auto-retarget. As this would significantly change game balance (particularly nerfing siege tanks and immortals) I'm guessing it'd probably come in an expansion.
Seek, behold, and reveal the truth
R0YAL
Profile Blog Joined September 2009
United States1768 Posts
Last Edited: 2010-09-09 21:57:53
September 09 2010 21:54 GMT
#14
On September 10 2010 06:50 Piousflea wrote:
From what I understand, in SC2 most units have equal target priority. This means that units will autoattack the closest valid target. They don't make any special preference to unit type, immortals can definitely waste a lot of shots on zealots even though stalkers are within range. I am not 100% sure, but burrowed zerg units may have a lower target priority and static defenses may have a higher target priority.

So-called "smart firing" is a completely different phenomenon, and has to do with the change in unit AI.

In SC1, units do something like this:
1) (Every frame, while idle and ready to fire) Check if any valid targets are in range. If so, start attack animation.
2) (0.1sec later) Deal damage.
3) (0.3sec later) Attack animation finishes.

In SC2 it's more like this:
1) (Every frame, while idle and ready to fire) Check if any valid targets are in range. If so, start attack animation.
2) (Every frame, while attack animation is going but before damage is dealt) Check if target is dead/untargetable/invulnerable. If so, stop attack animation and return to #1.
3) (0.1sec later) Deal damage.
4) (0.3sec later) Attack animation finishes.

The SC2 attack process leads to two peculiarities:
i) All units instantly retarget when their target dies. This means that a unit with an instant attack will never waste attacks on overkill. However, units with slow projectile attacks can still overkill. (Vikings are really bad for this)
ii) It is possible for a unit to play part of its attack animation, have its target die, then immediately repeat its attack animation and hit a different target. This phenomenon is most visible on the Immortal due to its huge muzzle flash animation, and looks like the animation is stuttering.

Despite the nickname "smart firing", I think auto-retargeting is quite stupid. IMO, Blizzard should change unit AI so that it is no longer able to auto-retarget. As this would significantly change game balance (particularly nerfing siege tanks and immortals) I'm guessing it'd probably come in an expansion.

I don't believe that Blizzard will take it out at this point. They decided to take the route of nerfing the crap out of tank damage instead. Personally I would rather have had them take out the auto targeting as well :\
Absence of evidence is not evidence of absence.
ArvickHero
Profile Blog Joined October 2007
10387 Posts
September 09 2010 21:58 GMT
#15
IMO, repairing SCVs should have the same targeting priority as attacking units that way a Thor being surrounded by SCVs won't be as retarded as it is now..
Writerptrk
Voyager I
Profile Joined July 2010
United States260 Posts
September 09 2010 22:07 GMT
#16
I believe the above is correct, in a general sense. BW also had a 0 hp frame, which meant dead units could still be targeted with attacks. In SC2, units die instantly, so once something's dead, units with instant shots can't attack them. There's simply nothing there to target.
SuperGnu
Profile Joined August 2010
Sweden240 Posts
September 09 2010 22:08 GMT
#17
On September 10 2010 06:39 R0YAL wrote:
Show nested quote +
On September 10 2010 06:35 Lexvink wrote:
On September 10 2010 06:19 CidO wrote:
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).


Reapers and Marines have smart AI, not sure what other units have it though.

Any unit without a projectile attack has "Smart AI."


THen why do immortals always without exeption(sp?) attack the non armoured units first?
From: TL.net Bot; This is a Warning! - Your posting sucks. Try to work on that. - Thanks in advance for your cooperation, KwarK
jaj22
Profile Joined September 2009
United Kingdom1376 Posts
September 09 2010 22:10 GMT
#18
Some testing in the unit tester shows that medivacs have the same auto-target priority as marauders. If they're the closest target, they'll be attacked first.

The only exception I can find is workers, which are only auto-targeted if there are no military units in range.

griff
Profile Joined April 2010
Netherlands26 Posts
Last Edited: 2010-09-09 22:13:09
September 09 2010 22:12 GMT
#19
Disclaimer, this is from what I've noticed playing.

Units target whatever is closest so they don't pick armored or whatever, except for:

Workers, repairing/mining/walking workers don't seem to have priority over other units. If the workers attack then the closest rule counts again. This means you can surround units with workers and then attack so your workers don't die before they surround. Also makes killing a planetary fortress a horrible experience

Flying units seem to have priority over walking units. My stalkers seem to go for flying units over ground units when they have range on both. Could just be that they are somehow closer so the being-closer rule counts but it feels that they prioritize flying units.

Warping in units don't have priority over attacking units, so you can warp stuff on top of marauders and they will keep firing at your warped in units before attack the warping in units.
R0YAL
Profile Blog Joined September 2009
United States1768 Posts
Last Edited: 2010-09-09 22:13:37
September 09 2010 22:12 GMT
#20
On September 10 2010 07:08 SuperGnu wrote:
Show nested quote +
On September 10 2010 06:39 R0YAL wrote:
On September 10 2010 06:35 Lexvink wrote:
On September 10 2010 06:19 CidO wrote:
Tanks have smart AI, they do not waste shots anymore. No other unit has smart AI (Zerglings will still try to attack the thors instead of the SCVs).


Reapers and Marines have smart AI, not sure what other units have it though.

Any unit without a projectile attack has "Smart AI."


THen why do immortals always without exeption(sp?) attack the non armoured units first?

On September 10 2010 06:50 Piousflea wrote:
From what I understand, in SC2 most units have equal target priority. This means that units will autoattack the closest valid target. They don't make any special preference to unit type, immortals can definitely waste a lot of shots on zealots even though stalkers are within range. I am not 100% sure, but burrowed zerg units may have a lower target priority and static defenses may have a higher target priority.

So-called "smart firing" is a completely different phenomenon, and has to do with the change in unit AI.

In SC1, units do something like this:
1) (Every frame, while idle and ready to fire) Check if any valid targets are in range. If so, start attack animation.
2) (0.1sec later) Deal damage.
3) (0.3sec later) Attack animation finishes.

In SC2 it's more like this:
1) (Every frame, while idle and ready to fire) Check if any valid targets are in range. If so, start attack animation.
2) (Every frame, while attack animation is going but before damage is dealt) Check if target is dead/untargetable/invulnerable. If so, stop attack animation and return to #1.
3) (0.1sec later) Deal damage.
4) (0.3sec later) Attack animation finishes.

The SC2 attack process leads to two peculiarities:
i) All units instantly retarget when their target dies. This means that a unit with an instant attack will never waste attacks on overkill. However, units with slow projectile attacks can still overkill. (Vikings are really bad for this)
ii) It is possible for a unit to play part of its attack animation, have its target die, then immediately repeat its attack animation and hit a different target. This phenomenon is most visible on the Immortal due to its huge muzzle flash animation, and looks like the animation is stuttering.

Despite the nickname "smart firing", I think auto-retargeting is quite stupid. IMO, Blizzard should change unit AI so that it is no longer able to auto-retarget. As this would significantly change game balance (particularly nerfing siege tanks and immortals) I'm guessing it'd probably come in an expansion.

Read this. Units don't do what you are referring to.
Absence of evidence is not evidence of absence.
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 2h 43m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 278
ProTech148
Codebar 18
StarCraft: Brood War
Soma 743
actioN 518
BeSt 433
Pusan 144
Mind 107
Dewaltoss 89
Killer 86
Leta 68
NaDa 38
Sharp 17
[ Show more ]
Noble 11
League of Legends
JimRising 571
Heroes of the Storm
Khaldor186
Other Games
Pyrionflax11
Organizations
Other Games
BasetradeTV209
Dota 2
PGL Dota 2 - Main Stream204
StarCraft: Brood War
lovetv 160
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2161
League of Legends
• Jankos3170
Upcoming Events
HomeStory Cup
2h 43m
OSC
4h 13m
WardiTV Weekly
2 days
The PondCast
3 days
Replay Cast
4 days
CrankTV Team League
4 days
Replay Cast
4 days
CrankTV Team League
5 days
Replay Cast
5 days
RSL Revival
6 days
[ Show More ]
CranKy Ducklings
6 days
Afreeca Starleague
6 days
Snow vs Jaedong
YSC vs hero
Liquipedia Results

Completed

Escore Tournament S3: W1
Douyu Cup 2026
Murky Cup 2026

Ongoing

IPSL Spring 2026
Acropolis #4
CSL Season 21: Qualifier 2
CSL 2026 Summer (S21)
SCTL 2026 Spring
HSC XXIX
Eternal Conflict S2 E1
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026

Upcoming

Escore Tournament S3: W2
ASL Season 22:Wild Card Qualifier
CSLAN 4
Blizzard Classic Cup 2026
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E3
Eternal Conflict S2 E2
Heroes Pulsing #3
Logitech G Connect 2026
StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.