• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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