• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Tower team changing

Status
Not open for further replies.

BlackLogic

B

BlackLogic

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.
 
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.
Back
Top