whoward69
DLL Minion
FYI
Code:
self.moveHandler = function(iPlayer, iUnit, iX, iY)
-- Do something
-- Remove myself
-- This will "remove" the handler, but not actually stop calling it!
-- And CTD on the second call
GameEvents.UnitSetXY.Remove(self.moveHandler)
end
GameEvents.UnitSetXY.Add(self.moveHandler)