If you use the BIS_fnc_spawnGroup to spawn a squad of infantry with an azimuth, they spawn looking into that direction but the squad formation is still to the north.
This causes them to turn back to looking north in about three seconds of spawning. {F26717} {F26718}