Setting a unit's stance to something other than none/auto will keep the unit in that stance and disable the AI from moving from that position. Setting Their Stance and Keeping Them Still
This module allows for the tailoring of AI behaviour via taking over certain editor waypoints, setting a variable on the unit, or setting a unit's stance in the editor.