HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TriggerRemoveAction vs TriggerClearActions

12-26-2007, 12:55 PM#1
cohadar
Witch one of these is making problems and why?
12-26-2007, 01:45 PM#2
zen87
i guess both of em wont really cause any trouble if you used it correctly... is like comparing GroupRemoveUnit and GroupClear...
12-26-2007, 03:18 PM#3
HINDYhat
I've heard that TriggerClearActions causes problems... but I've only heard about it. No one has really explained to me why... meh... Just try it yourself and check for leaks.
12-26-2007, 03:31 PM#4
cohadar
Vexorian? heloooooooooo!
12-26-2007, 05:25 PM#5
Vexorian
I am not sure if they would cause problems when I2H is totally out of the map. Then again I am not too sure TriggerClearActions actually fixes the memory leak, I just got myself used to exploit triggerconditions instead of actions for dynamic stuff...
12-26-2007, 07:39 PM#6
blu_da_noob
When I tested it (quite a while ago), TriggerClearActions 'dereferences' the actions from the trigger, so they are no longer executed. However, the actions are not 'destroyed' and still take up memory. TriggerRemoveAction destroys the removed action.

(Basis: periodic timer creating a trigger, adding an action, calling one of the action removal functions and then destroying the trigger, nulled everything too. when using ClearActions, memory usage steadily increased, when using RemoveAction memory usage did not increase)
12-27-2007, 07:24 AM#7
DioD
this is

RemoveUnit vs GroupRemoveUnit

clear actions useless function.