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

Mana

Status
Not open for further replies.
Level 5
Joined
Jul 15, 2012
Messages
101
I want to make that if unit is not in arena region, his mana is always 0. Couldn't figure it out how to do that.
 
Last edited:
You could add all units who leave the arena to UnitGroup.

Then make a periodic trigger, for example each 2 seconds --> Pick every Unit in UnitGroup and Set Mana of Picked unit to 0.

If unit enters arena region remove unit from this UnitGroup.

You can filter unit with being hero or what ever you need, and also pay attention to add at start all units who are not in arena to this UnitGroup.
 
Status
Not open for further replies.
Top