- Joined
- Jan 12, 2011
- Messages
- 1,527
I need a very specific trigger, I found examples in both GUI and Jass which revives trees in the map every X seconds (however most use wait and I believe that wait isn't recommended, right?)
Alright so:
The trigger consists on reviving every single tree on the map that has been destroyed every 5 minutes, however my map has both destructible gates and crates, so reviving every destructible isn't a choice.
Anyone knows of an optimized way to do this? my map has several (a lot) different types of trees not just ashenvale trees.
Trigger can be in either GUI or Jass/vJass, it's fine either way
I really have no idea whatsoever on Jass, I can read code though but I suppose you can make a filter function that works like this:
GetDestructableTypeId
which is passed
GetEnumDestructable as an argument?
This should return if the destructable is a tree(?) if so then revive it?
If someone can help me do it in Jass I would be very grateful.
Alright so:
The trigger consists on reviving every single tree on the map that has been destroyed every 5 minutes, however my map has both destructible gates and crates, so reviving every destructible isn't a choice.
Anyone knows of an optimized way to do this? my map has several (a lot) different types of trees not just ashenvale trees.
Trigger can be in either GUI or Jass/vJass, it's fine either way
I really have no idea whatsoever on Jass, I can read code though but I suppose you can make a filter function that works like this:
GetDestructableTypeId
which is passed
GetEnumDestructable as an argument?
This should return if the destructable is a tree(?) if so then revive it?
If someone can help me do it in Jass I would be very grateful.
Last edited: