• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:40
CEST 00:40
KST 07:40
  • 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
[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244ByuL, and the Limitations of Standard Play3
Community News
Official StarCraft website teases new content ahead of BlizzCon?9Stellar Fest TWO the Moon (Dec 16-20)8Weekly Cups (August 24-30): Patches' balance mod takes over2New 3v3 BGH Ladder (and more) on ShieldBattery!40Weekly Cups (August 17-23): Zerg dominate the week6
StarCraft 2
General
Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game SC4ALL: II Winner Will Earn a Spot at HSC 30! Balance hotfix patch 5.0.16b (July 16) September World Ranking: herO leads, Serral climbs Weekly Cups (August 10-16): SHIN doubles
Tourneys
IntoTheTV X SOOP SC2 League : Weekly & Monthly SC2 INu's Battles#20 [BO.9] 2026 GSTL Announcement Stellar Fest TWO the Moon (Dec 16-20) PIG STY FESTIVAL 8.0! (13 - 23 August)
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This Mutation # 539 Thunder Dome
Brood War
General
Official StarCraft website teases new content ahead of BlizzCon? ASL22 General Discussion [Personal Project Share] Terran Defense v0.60 BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
KCM Race Survival 2026 Season 3 [Megathread] Daily Proleagues BSL LAN Party - Kraków 29-30 August - OPEN SIGNUPS [ASL22] Ro24 Group F
Strategy
Replay Review Process - What do you do? Game Theory for Starcraft Odyssey Mineral Stack Saturation Fighting Spirit mining rates
Other Games
General Games
Diablo IV EVE Corporation Nintendo Switch Thread [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread UK Politics Mega-thread Things Aren’t Peaceful in Palestine Artificial Intelligence Thread Russo-Ukrainian War Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Regacy Esports: The Bh…
regacyesports
Violent Games and Crime Rate…
TrAiDoS
LOCKPICKING NOOB
LUCKY_NOOB
Cathedral Of CS And NY pizza a…
FuDDx
Please support my new stand…
Peanutsc
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3815 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
OSC
22:30
Masters Cup #151
davetesta4
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nathanias 58
CosmosSc2 31
StarCraft: Brood War
Shuttle 642
Artosis 422
Sexy 42
Dota 2
monkeys_forever217
Pyrionflax159
febbydoto12
League of Legends
Doublelift3393
Counter-Strike
summit1g1543
minikerr60
Super Smash Bros
Mew2King113
Other Games
Liquid`RaSZi3378
shahzam330
hungrybox250
C9.Mang0152
RotterdaM64
NeuroSwarm54
Trikslyr49
ViBE49
UpATreeSC28
JuggernautJason19
Organizations
Other Games
BasetradeTV33
[ Show 16 non-featured ]
StarCraft 2
• RyuSc2 27
• musti20045 25
• IndyKCrew
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
StarCraft: Brood War
• Pr0nogo 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21761
League of Legends
• TFBlade777
Other Games
• imaqtpie1470
• Scarra754
• Shiphtur180
Upcoming Events
IntoTheTV X SOOP
12h 20m
CranKy Ducklings
1d 11h
Big Brain Bouts
1d 11h
Garitos vs ArT
Lambo vs Percival
TriGGeR vs ByuN
Sparkling Tuna Cup
2 days
OSC
2 days
Shopify Rebellion Sundays
2 days
Mixu vs TBD
Spirit vs TBD
Clem vs TBD
Patches Events
2 days
Afreeca Starleague
3 days
Soma vs Shuttle
BeSt vs Rush
WardiTV Weekly
3 days
Afreeca Starleague
4 days
Leta vs ggaemo
Jaedong vs Queen
[ Show More ]
GSL
4 days
PiGosaur Cup
5 days
Kung Fu Cup
5 days
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-09-02
PiG Sty Festival 8.0
Light Tournament 2026

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
RSL Revival: Season 6
Calamity Invitational
Big Dog Cup 2026 Div 1
BLAST Open Fall 2026
Esports World Cup 2026
Esports World Cup 2026: LCQ
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026

Upcoming

Acropolis #5
Acropolis #5 - TRS
Escore Tournament S3: King of Kings
Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #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.