• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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 16
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 16
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