• 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.

Tree detecting

Status
Not open for further replies.
at map init group all trees and on death event remove tree from group and check whether the group is empty

This will not work correctly.

Enumerating destructibles in region / range only enumerates up to 64 destructibles.

You would instead need to make / place trees using triggers. Every tree you create add it to a global group.

You could enumerate trees in range whenever a tree dies but it may be tricky to get it to work properly as it may count other destructibles.
 
Status
Not open for further replies.
Top