| 02-23-2004, 03:51 AM | #1 |
I'm trying to get trees to grow back on my footwars map. I've gotten it to work by doing a pick each destructible in region, and resurrecting it if it is a ruined tree wall. There's two problems with this: 1. The trees instantly pop back into existence. I've seen maps where they sprout out of the ground (Waugriff's FFA footwars, for example). Doing the regrowth animation in a nice lag-free way is another worry. 2. It seems like doing a Pick Every Destructible... is going to be slow and cause lag in a multiplayer game. One solution i have come up with is to amortize the cost by doing continual tree refreshes of only a couple of trees at a time. I might pick 10 destructibles on the map every ten seconds, and for every one that is a ruined tree wall, i will regrow it. |
| 02-23-2004, 04:11 AM | #2 |
1) Some types of trees have regrow animations, others don't. Not much you can do other than use the ones that have animations. For example, Barrens Canopy Trees have a grow animation, Barrens normal trees don't. 2) It wont cause lag. |
| 02-23-2004, 04:22 AM | #3 |
3) "pick every x in y and do z" causes memory leaks. remember that. |
| 02-23-2004, 04:49 AM | #4 |
The Sunken Ruins treewall tree does have a birth animation, but I can't get it to play! Does anyone know about this? |
| 02-23-2004, 05:06 AM | #5 |
AnArki, pick every unit in region can cause a memory leak, pick every descrutable in region doesn't. If you want proof go look in blizzard.j (it is to do with the lack of a "Descrutable Group" object) edit: You can manually play the birth animation with the action Animation - Play Descructable Animation |
