• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] How does locust work?

Status
Not open for further replies.
I know it makes the unit untargetable, but what else it does prevent?
I hav a trigger that picks up every unit owned by specific player and removes them, but some units that have locust stay.
Now I added this to the pick every unit trigger
  • Custom script: call UnitRemoveAbilityBJ( 'Aloc', GetEnumUnit() )
to see if I can remove the unit by first removing locust

do you know something?

(
  • Set Pick_Minions[(Player number of (Owner of (Dying unit)))] = (Units in (Playable map area) owned by (Owner of (Dying unit)))
  • Unit Group - Pick every unit in Pick_Minions[(Player number of (Owner of (Dying unit)))] and do (Actions)
    • Loop - Actions
      • Custom script: call UnitRemoveAbilityBJ( 'Aloc', GetEnumUnit() )
      • Unit - Remove (Picked unit) from the game
)
 
Level 25
Joined
Oct 18, 2008
Messages
945
On top of what Legal_Ease and Ardenian has mentioned I should also say that locusts are also invulnerable. They are mostly used for dummies.

The only way to pick them in a group is to enumerate them with GroupEnumUnitsOfPlayer (Picks all units of the specified player).

not exactly the same as invulnerability. artillery attack units are able to target them if ordered by trigger, though it still won't do damage (i imagine)

a regular invulnerability would just deny attack orders.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
You can pick them using a normal Unit Type comparison as well, so picking them using a Boolean Player Owner Unit has ability (locust) should work as well.
That way, you should be able to only pick specified units with your own locust ability.
From what I've seen, they can't be hit by splash damage as I've recently done some test which damages all units including Player units in an AoE but there may or may not be exceptions to this.
 
Status
Not open for further replies.
Top