• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Custom Tree Death While Harvesting Problem

Status
Not open for further replies.
Hi!
I have a question. Is there any way to make custom tree models (replaced with destructible tree wall) die after harvesting? I mean trees doesn't die when the peasants harvest them and remain like a ghost. :/
I have these models in my map:
trees-jpg.287150

I think it can be done with triggers, maybe.
 
Level 15
Joined
Mar 25, 2016
Messages
1,327
Event: A destructible dies
Condition: destructible type of dying destructible = your tree
Actions: remove destructible

This should work, except that this event does not exist. You can emulate the event using a destructible enumeration in JASS though. Then you would not even need the condition anymore.
It is basically the same as using
  • Destructible - A destructible within (Playable map area) dies
. Just that this function in GUI is capped at 64 destructibles and we need JASS to get around this limit.
 
Event: A destructible dies
Condition: destructible type of dying destructible = your tree
Actions: remove destructible

This should work, except that this event does not exist. You can emulate the event using a destructible enumeration in JASS though. Then you would not even need the condition anymore.
It is basically the same as using
  • Destructible - A destructible within (Playable map area) dies
. Just that this function in GUI is capped at 64 destructibles and we need JASS to get around this limit.
I've done this before and it didn't work. I also don't know JASS, I just know GUI.
 
Level 15
Joined
Mar 25, 2016
Messages
1,327
I tried to do it, but there seems to be a problem with the harvesting AI. Sometimes they don't continue harvesting, if a tree is removed by triggers.
I think you should add the death animation. It's probably a 1 minute process for someone with modeling knowledge, but I don't know how to do it.
 
Status
Not open for further replies.
Top