• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:20
CEST 21:20
KST 04:20
  • 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
Team TLMC #5: Vote to Decide Ladder Maps!0[ASL20] Ro8 Preview Pt1: Mile High15Team TLMC #5 - Finalists & Open Tournaments2[ASL20] Ro16 Preview Pt2: Turbulence10Classic Games #3: Rogue vs Serral at BlizzCon10
Community News
Artosis vs Ret Showmatch1Classic wins RSL Revival Season 20Weekly Cups (Sept 15-21): herO Goes For Four2SC2 5.0.15 PTR Patch Notes + Sept 22nd update257BSL 2025 Warsaw LAN + Legends Showmatch4
StarCraft 2
General
Storm change is a essentially a strict buff on PTR SC2 5.0.15 PTR Patch Notes + Sept 22nd update Code S RO4 & Finals Preview - Cure, Dark, Maru, Creator Why Storm Should NOT Be Nerfed – A Core Part of Pr Classic wins RSL Revival Season 2
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Prome's Evo #1 - Solar vs Classic (SC: Evo) Monday Nights Weeklies RSL: Revival, a new crowdfunded tournament series SC2's Safe House 2 - October 18 & 19
Strategy
Custom Maps
External Content
Mutation # 492 Get Out More Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense
Brood War
General
Artosis vs Ret Showmatch [ASL20] Ro8 Preview Pt1: Mile High BGH Auto Balance -> http://bghmmr.eu/ Whose hotkey signature is this? Old rep packs of BW legends
Tourneys
[Megathread] Daily Proleagues [ASL20] Ro8 Day 2 [ASL20] Ro8 Day 1 [ASL20] Ro16 Group D
Strategy
Simple Questions, Simple Answers Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Liquipedia App: Now Covering SC2 and Brood War! Path of Exile Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Big Programming Thread UK Politics Mega-thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
[AI] JoCo is Eminem for com…
Peanutsc
Try to reverse getting fired …
Garnet
[ASL20] Players bad at pi…
pullarius1
Too Many LANs? Tournament Ov…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1756 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 4h 40m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 786
IndyStarCraft 166
UpATreeSC 140
JuggernautJason95
ForJumy 10
StarCraft: Brood War
ggaemo 275
Dewaltoss 196
Mini 154
sSak 137
firebathero 130
Movie 110
ivOry 62
Sharp 60
soO 37
Free 35
[ Show more ]
Terrorterran 12
NaDa 9
Dota 2
qojqva5145
Dendi1682
Counter-Strike
ScreaM1736
pashabiceps529
Stewie2K305
byalli271
Heroes of the Storm
Khaldor163
Other Games
Grubby2799
FrodaN2251
C9.Mang0107
QueenE64
Trikslyr61
NeuroSwarm47
OptimusSC22
Organizations
Other Games
BasetradeTV50
StarCraft 2
angryscii 27
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• davetesta22
• Reevou 17
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 8172
League of Legends
• TFBlade958
• Shiphtur335
Other Games
• imaqtpie1463
Upcoming Events
PiGosaur Monday
4h 40m
LiuLi Cup
15h 40m
OSC
19h 40m
The PondCast
1d 14h
CranKy Ducklings
2 days
Maestros of the Game
3 days
Serral vs herO
Clem vs Reynor
[BSL 2025] Weekly
3 days
[BSL 2025] Weekly
3 days
BSL Team Wars
4 days
Wardi Open
5 days
[ Show More ]
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

2025 Chongqing Offline CUP
RSL Revival: Season 2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
Maestros of the Game
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

IPSL Winter 2025-26
SC4ALL: Brood War
BSL 21 Team A
BSL Season 21
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
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 © 2025 TLnet. All Rights Reserved.