13 years
edited 8 years
Sometimes the unit interface needs to be refreshed in order to be displayed correctly.
For example, try to change the xp of an unit like every 0.05 s without refreshing the ui, and with it.
For example, try to change the xp of an unit like every 0.05 s without refreshing the ui, and with it.
library RefreshUI
globals
// just make sure you define an ability which will be never used
private constant integer DUMMY_ABILITY = 'AImo'
endglobals
function RefreshUI takes unit u returns nothing
call UnitAddAbility(u,DUMMY_ABILITY)
call UnitRemoveAbility(u,DUMMY_ABILITY)
endfunction
endlibrary