I've discovered a useful hint how to force the unit to rotate on the requested angle.
As we know command
ai_rotate works in a very strange manner, unit rotates always at the same angle and direction. But there is a catch. If u want to rotate the unit in appropriate direction, then u've to manipulate with contour orientation
Let's see on this picture. I need tank to see in the direction along "red arrow", then I've to set up manually the contour orientation according necessary direction. In my case the angle of the blue contour is -135 degrees.
The script will be the next:
ext, ai_stop;
ext, ai_defence, gbr_pos_01, 15, 1;
ext, ai_rotate, 180;
where
ai_stop - stop the unit movement
ai_defence - move and pick up pre-defined position
gbr_pos_01(
1 means distance, but seems it doesn't has effect at all)
ai_rotate - rotate (doesn't matter what the angle)