HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

memory leak thing for picking doodads

02-06-2004, 01:08 AM#1
SilentSpyder
I know for unit groups you use that custom thing that destroys temporary unit groups, but is there one for doodads. I want a trigger that picks every doodad around a unit and play the stand hit animation. This trigger goes off periodacly every .5 secs. So is there a custom thing for doodads?
02-06-2004, 04:54 AM#2
danny760311
No. But you can handle it by jass

And Pick Player Group doesn't have, either.
02-06-2004, 12:59 PM#3
SirSalute
erm, can i know the custom script for that?
=P :gsmile:
02-07-2004, 12:37 AM#4
danny760311
Sorry, I made a mistake:bgrun:

There is no Destructible Group variable type.

So when you pick Dests, no temperary variable is created. So you don't even worry about it^^"
02-07-2004, 12:41 AM#5
SilentSpyder
Okay I'll take your word for it, cause I'm doing it every .5 secs.
02-07-2004, 04:14 AM#6
Xinlitik
I'm not so sure about that danny. I dont think it's possible to select a group of anything without making a temporary group. Best to wait for a master at this stuff like Grater or Vex.
02-07-2004, 05:21 AM#7
Newhydra
Or you could open blizzard.j and look for yourself. All temporary groups are taken care of when you use pick doodads in radius. I'm not sure about region, I haven't looked.
02-07-2004, 12:59 PM#8
Cubasis
Xinlitic... Danny is right, There is no such thing as a Doodad/Destructible group, there are player groups and unit groups (which both can leak), but you won't leak anything when working with Destructables.

So that only leaves Destructable's, and they ofcourse don't leak, as they go by the same mechanics as a Unit does, or a Player... then you are just referencing a already-created object, and you have no use in destroying it, becouse then you would be killing/destroying the unit/destructable/player (not that you "can" destroy a player or whatever).

Edit: So "Groups" (GUI: Unit Groups) can only store Units, "Forces" (GUI: Player Groups) can only store Players. So it's logical that you don't create a local "group" (units) when picking Destructibles.

Cubasis