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!
I see how it works. I'll give it a shot and call a script to destroy the group. Also related; Do you know how to return a region that a destructible was destroyed in?
I see how it works. I'll give it a shot and call a script to destroy the group. Also related; Do you know how to return a region that a destructible was destroyed in?
You don't need destroy anything. Destructable enumeration doesn't actually involve "group" objects.
As for your second question, no. There is no built-in way, because regions may overlap (so a destructable could belong to many regions). If your map is made so that all regions are disjoint, then you can use a hashtable to save the region under the handle ID of the destructable. You can just enumerate through all regions on initialization. Don't forget to map all the destructables you create/respawn through code as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.