vypur85
Hibernate
- Reaction score
- 803
Code:
call RemoveUnit (udg_YOURUNIT)
The above code is similar to the GUI version of 'Unit - Remove Unit'. Doing this will completely remove the unit from the game.
In GUI, unit variable does not leak. It does not require removal. You can still null it though, but it's not necessary. (Custom Script: Set YourVariable = null)
> it needs more destroy scripts
The tutorial has already taken care of most (or all) of the possible leaks in GUI. There are no more other destroy scripts that are necessary (as far as I know).