i do think you should use setUnitX(udg_unit, udg_RealX)
and setUnitY(udg_unit, udg_RealY), since some sliding map needs spell casting, and using setUnitX and Y doesn't interupt spellcasting, or any other channeling or commands.
and its a lot faster. xD.
but since it works just fine right now, i guess that should do.