• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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.
 
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.
 
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.
Back
Top