• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Tree detecting

Status
Not open for further replies.
Level 29
Joined
Oct 24, 2012
Messages
6,543
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