1. Place down your player and a friendly trooper (just so he won't shoot you).
2. Give your friendly unit a name, any name works fine.
3. Copy & paste this code into his initialization field:
this addAction ["Turn Around",
{
_dir = (direction (_this select 0)) - 180;
(_this select 0) setFormDir _dir;
}, [], 6, false];
4. Preview your mission and paste this into the debug console and run it:
UNIT_NAME spawn
{
while {true} do
{
hintSilent str (direction _this);
};
};
5. Go up to the guy and use the action a bunch of times. I would say the bug happens about 10-20% of the time, so it's pretty low, but definitely there.