• 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] HP/MANA fountain question

Status
Not open for further replies.
Level 14
Joined
Jun 27, 2008
Messages
1,325
The HP/Mana fontains use auras to regenerate health/mana. Open these auras in the object editor and look for the field "targets allowed". There you can select stuff like "only ground units", "no invulnerable units", ...

If this isnt enough then you might have to trigger the regeneration yourself. To do so set the regeneration rate of the aura to zero, create a trigger that runs every ~0.5 seconds, picks all units around the fontain and adds some hp/mana to them. You can then use the condition in "Pick every unit in ... matching <Condition>" to filter which units should receive regeneration and which shouldnt.
But this is only one possible approach out of many...
 
Level 2
Joined
Feb 26, 2014
Messages
6
The HP/Mana fontains use auras to regenerate health/mana. Open these auras in the object editor and look for the field "targets allowed". There you can select stuff like "only ground units", "no invulnerable units", ...

If this isnt enough then you might have to trigger the regeneration yourself. To do so set the regeneration rate of the aura to zero, create a trigger that runs every ~0.5 seconds, picks all units around the fontain and adds some hp/mana to them. You can then use the condition in "Pick every unit in ... matching <Condition>" to filter which units should receive regeneration and which shouldnt.
But this is only one possible approach out of many...

Thanks ! It worked.
 
Status
Not open for further replies.
Top