I want to do this and need to know if it leaks:
set udg_temp_group = units matching condition
save handle of (udg_temp_group) as key(group) of key(triggering unit) in (udg_hashtable_1)
set udg_temp_group = null
So that I can call these units later with the hashtable handle without needing a permanent global variable. If I use the following, it seems the hashtable handle is useless:
set udg_temp_group = units matching condition
save handle of (udg_temp_group) as key(group) of key(triggering unit) in (udg_hashtable_1)
call DestroyGroup(udg_temp_group)
And if none of that works, how do I save a unit group in a hastable without using a global variable?
set udg_temp_group = units matching condition
save handle of (udg_temp_group) as key(group) of key(triggering unit) in (udg_hashtable_1)
set udg_temp_group = null
So that I can call these units later with the hashtable handle without needing a permanent global variable. If I use the following, it seems the hashtable handle is useless:
set udg_temp_group = units matching condition
save handle of (udg_temp_group) as key(group) of key(triggering unit) in (udg_hashtable_1)
call DestroyGroup(udg_temp_group)
And if none of that works, how do I save a unit group in a hastable without using a global variable?