I would use a varaible to keep track of the last clicked unit (by unique id, of course). Then, upon releasing the mouse button, the unit whose unique ID matches the stored on in the global var has its angle of motion changed.
Lol and if that was confusing, ask and I (or anyone, for that matter) can provide you with an example.