• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

does destructible enum fail somehow

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
Somewhere I recall people saying that the enums only work for at most a certain number of destructible objects. If you try to enum all destructibles in a map and the map is average (4000-8000 odd destructibles) then it will fail after only a few dozen.

The solution in this case is to break the map into smaller rects containing very few each and enum them in a loop. You may need multiple threads to avoid hitting the op-limit if processing several thousand destructibles.

Be aware that a doodad and a destructible are not related in any way even if the editor places them like they are. Doodads cannot be sensed by triggers, they can only be interacted with animation messages.
 
Level 26
Joined
Oct 18, 2008
Messages
952
A tile (node to node) is like 128 units if I recall.

I think it may have been failing to pick trees that were on top of the point because the search area wasn't a full tile.

---

yep

  • Actions
    • Destructible - Create a Summer Tree Wall at (Center of (Playable map area)) facing (Random angle) with scale 1.00 and variation 0
    • Destructible - Pick every destructible within 29.00 of (Center of (Playable map area)) and do (Actions)
      • Loop - Actions
        • Game - Display to (All players) the text: this is working
 
Status
Not open for further replies.
Top