- Joined
- Mar 24, 2010
- Messages
- 950
the difference between
Unit Group - Remove all units from Temp_UnitGroup
and
Custom script: call DestroyGroup (udg_Temp_UnitGroup)
is when you set the temp_unitgroup var to all units in area matching etc.. That is creating a unit group and filling it with units that match the conditions.
So then that unit group is destroyed with that variable at the end and the var is used to reference that unit group after its used.
Does that also make that unit group empty? before it destroys it?
Or is it possible that if units are still alive that were in that group if u go to use that same variable again units could pop up in there.
Also what happens if u set Temp_UnitGroup var to = all units in area matching etc.. and u then use this:
Unit Group - Remove all units from Temp_UnitGroup
will that clear it and not destroy it? and whats the difference exactly if there is no units left to reference in that group anymore
Unit Group - Remove all units from Temp_UnitGroup
and
Custom script: call DestroyGroup (udg_Temp_UnitGroup)
is when you set the temp_unitgroup var to all units in area matching etc.. That is creating a unit group and filling it with units that match the conditions.
So then that unit group is destroyed with that variable at the end and the var is used to reference that unit group after its used.
Does that also make that unit group empty? before it destroys it?
Or is it possible that if units are still alive that were in that group if u go to use that same variable again units could pop up in there.
Also what happens if u set Temp_UnitGroup var to = all units in area matching etc.. and u then use this:
Unit Group - Remove all units from Temp_UnitGroup
will that clear it and not destroy it? and whats the difference exactly if there is no units left to reference in that group anymore