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

linked building repair?

Status
Not open for further replies.
You need a boolean to set 'true' when the worker starts repairing one of the buildings and set 'false' when the worker stops repairing..

Then pick every building, and add 0.60(i think that's the HP repaired but im not very sure) to their HP every 1.50(the rate of repair) seconds IF the boolean above is true...

I'm not sure if this is the best method, I'm not using my PC right now.... but I'm sure it won't cause any bugs, just keep in mind that the repair abilities of every race are different, and that there is a cost for the repair, you need to decide if it is going to be multiplied by the buildings repaired..
 
If what you want is to not allow multiple units to repair the same building then you could perhaps use the priest heal ability, but there might be a better way if you want repairing to cost gold and lumber.
 
Status
Not open for further replies.
Back
Top