Darwin, what you need to do, is have a variable that sets weather or not the object should be moving, ie, when you right-click and the obejct is selected, set its move variable to 1, then, somewhere else in the loop, check all the moving variables, and then move the the object if it's set to 1, ie;
`obj = Object number 1, the currently selected object.
If rightclick
destx = mouseclickx
destz = mouseclickz
objmoving = 1
EndIf
For x = 1 To how ever many units you have
If objmoving = 1
Point Object obj,destx,y,destz
Move Object obj,5
EndIf
Next x
That's how I did it in mine, and that also means that your units can keep on moving even if you deselect them.
Hope I Helped...

Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy