• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 14:23
CET 20:23
KST 04:23
  • 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
ByuL: The Forgotten Master of ZvT24Behind the Blue - Team Liquid History Book16Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0241LiuLi Cup: 2025 Grand Finals (Feb 10-16)46Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker16
StarCraft 2
General
Liquipedia WCS Portal Launched ByuL: The Forgotten Master of ZvT Kaelaris on the futue of SC2 and much more... How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) StarCraft Evolution League (SC Evo Biweekly) How do the "codes" work in GSL? Sparkling Tuna Cup - Weekly Open Tournament LiuLi Cup: 2025 Grand Finals (Feb 10-16)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 513 Attrition Warfare The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth
Brood War
General
[LIVE] [S:21] ASL Season Open Day 1 BGH Auto Balance -> http://bghmmr.eu/ ACS replaced by "ASL Season Open" - Starts 21/02 Gypsy to Korea A cwal.gg Extension - Easily keep track of anyone
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Simple Questions, Simple Answers Zealot bombing is no longer popular? Fighting Spirit mining rates Current Meta
Other Games
General Games
Nintendo Switch Thread ZeroSpace Megathread Diablo 2 thread Path of Exile Battle Aces/David Kim RTS Megathread
Dota 2
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 Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Canadian Politics Mega-thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ASL S21 English Commentary…
namkraft
Inside the Communication of …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1852 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
PSISTORM Gaming Misc
16:55
FSL s10 TeamLeague: ST vs POG
Freeedom43
Liquipedia
Epic.LAN
12:00
#47 - Day 2
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
BRAT_OK 83
goblin 54
Vindicta 48
SteadfastSC 33
EmSc Tv 19
PattyMac 2
StarCraft: Brood War
Sea 1604
firebathero 167
Hm[arnc] 141
Dewaltoss 112
Shuttle 88
Rock 31
Shine 10
Dota 2
Gorgc5345
qojqva1509
Counter-Strike
fl0m5187
byalli1266
Super Smash Bros
Mew2King91
Heroes of the Storm
Khaldor378
MindelVK14
Other Games
tarik_tv4971
Grubby3176
FrodaN1564
Beastyqt809
B2W.Neo546
Liquid`Hasu180
ArmadaUGS170
ToD127
Trikslyr83
Livibee80
KnowMe39
Organizations
Counter-Strike
PGL53775
Other Games
gamesdonequick1255
StarCraft 2
EmSc Tv 19
EmSc2Tv 19
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 26 non-featured ]
StarCraft 2
• Berry_CruncH207
• printf 65
• HeavenSC 38
• Shameless 29
• Adnapsc2 14
• LUISG 13
• musti20045 10
• Airneanach9
• Migwel
• LaughNgamezSOOP
• IndyKCrew
• Kozan
• sooper7s
• AfreecaTV YouTube
• intothetv
StarCraft: Brood War
• Azhi_Dahaki13
• 80smullet 7
• Pr0nogo 2
• sM.Zik 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Jankos2049
• Shiphtur362
Other Games
• imaqtpie935
• tFFMrPink 17
Upcoming Events
Replay Cast
4h 37m
PiG Sty Festival
13h 37m
Serral vs YoungYakov
ByuN vs ShoWTimE
Sparkling Tuna Cup
14h 37m
Replay Cast
1d 4h
Replay Cast
1d 13h
Wardi Open
1d 16h
Monday Night Weeklies
1d 21h
Replay Cast
2 days
WardiTV Winter Champion…
2 days
Replay Cast
3 days
[ Show More ]
WardiTV Winter Champion…
3 days
The PondCast
4 days
Replay Cast
5 days
Korean StarCraft League
6 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

Escore Tournament S1: King of Kings
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
[S:21] ASL SEASON OPEN 1st Round Qualifier
WardiTV Winter 2026
PiG Sty Festival 7.0
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Acropolis #4 - TS5
Jeongseon Sooper Cup
Spring Cup 2026: China & Korea Invitational
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4 - TS6
Acropolis #4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.