Yes, I'm back, but I don't expect anyone to remember. Anyways, I'm building a map where trees will be destroyed, but I do not know how to respawn trees after they are hit by an artillery strike.
Off topic: What happened to TTOR in my disappearance?
Event: a destructabel in region entire map gets destroyed Cond: //do this once for each tree-type, and put them all togeher in an 'or' type of dying destructable = mytree Action: Create a destructabel of type(type of dying) at position of dying
if you want a wait before they come back, you should call this jass function:
function RespawnDestructable takes destructable MyDes, real WaitDuration returns nothing
call TriggerSleepAction(WaitDuration)
call CreateDestructableLoc( GetDestructableTypeId(MyDes), GetDestructableLoc(MyDes), GetRandomDirectionDeg(), 1, 0 )
endfunction
you can call it with custom code - "call RespawnDestructable(GetDyingDestructable(), 10)" the 10 is how long, in seconds, it takes until the tree comes back.