private constant real RegrowAfter = 23.0
private constant real RegrowAfter = 10.0
Erhmm... aren't you guys complicating things...?
When i tested this it worked perfectly.
When i tested this it worked perfectly even though multiple trees died within the 10 sec.
- Tree Respawn
- Destructible - A destructible within (Entire map) dies
- (Destructible-type of (Dying destructible)) Equal to Summer Tree Wall
- Wait 10.00 seconds
- Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
^ destructible groups don't leak afaik so no need to useJASS:
set bj_wantDestroyGroup = true
function EnumDestructablesInCircleBJ takes real radius, location loc, code actionFunc returns nothing local rect r if (radius >= 0) then set bj_enumDestructableCenter = loc set bj_enumDestructableRadius = radius set r = GetRectFromCircleBJ(loc, radius) call EnumDestructablesInRect(r, filterEnumDestructablesInCircleBJ, actionFunc) call RemoveRect(r) endif endfunction
You're gonna need a formula for that, a cone-shaped formula for that
Say, the Breath of Fire spell, the shape itself is a cone
So, the formula should be Pi * Radius * Side (for Area Formula) (not particularly sure about this formula)
After doing this formula, pick every trees in that particular area, and kills it
And no, fail video, u know why? You are teaching people to make leaks.
what's the problem? please explain!
ur event is Enters a region so there is no dying unit...
No ingame spell will ever be able to fix that...In worst case senarios, this results in a WC3 fatal error.