You should move your icon function into the repaint code section.
The create code is call only one time.
Do not use a local variable name "unit". Because the repaint function has a unit argument.
I recommend to prefix all your local variables.
__________________
RDX manager
Sigg
|