• 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.

Tower team changing

Status
Not open for further replies.
Level 1
Joined
Mar 8, 2010
Messages
3
is there a general command to make a certain type of unit that falls under a percentage of hp turn to the attackers control?

I know how to make a single building change to the attackers team upon receiving 10% hp or w/e.

but it would save alot of time to have a trigger that effects all of the same type of unit if there is can some one tell me how?
 
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Percentage life of (Attacked unit)) Less than or equal to 10.00
    • Actions
      • Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
This what you want?

that effects all of the same type of unit

That is possible by storing the unit-type in an array-variable then looping the variable but you will probably find it hard to understand.
 
Level 1
Joined
Mar 8, 2010
Messages
3
Naw i mean like 1 type of unit , is there a way to make a type of unit turn like instead of example: Darknesstower 0027 change ownership

have Darkness Tower change ownership <-- not just one of the towers but all of its type

( ah kk didnt see your ending part )
 
Status
Not open for further replies.
Top