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

[Trigger] Healing Wave loop help

Status
Not open for further replies.
Level 5
Joined
Mar 13, 2008
Messages
126
I made a spell that uses dummy unit(missile model) and moves ahead healing units that are near it but how can i make it to heal unit once since i use periodic event?maybe custom values or something like that?
tnx in advance :grin:
 
Level 17
Joined
Jan 21, 2007
Messages
2,013
I'm not totally sure that i've understood your point, but i think you mean that you've made a healing shockwave? U don't need triggers for this, just make shockwave or carrion swarm negative amounts.
Ofcoarse, if you wanted a specal effect like a bigger model or something then you would need to use the dummy unit thingie. I think you've made something like every 0.10 seconds of gametime move unit blablabla? And in this trigger you pick all units nearby the dummy unit and heal them, correct?

If that's the case, the answer is simple. Use a unit group! when picking all units around the dummy unit add the condition (matching) unit is in (unit group) equal to false.
After the unit have been healed, add them to the unit group. When the spell is complete, remove all units from the unit group.

Oh, and i have a thing that makes me say a big nono when it comes to custom unit values, since if you want it to work correctly u can only use it for one thing per map.
I prefer unit groups, they have infinite possibilities! (well almost)

Hope i helped ya!
 
Last edited:
Status
Not open for further replies.
Top