Don't forget:
this disableAI "target"
Or you will be frustrated to no end, trying to figure out WHY your guys still move! See, it turns out that the AI can still move after you disable their "move" AI (weird huh?), but only during combat. Whenever the AI starts engaging the enemy, they will move to try and flank them, unless you disable their "target" AI. I don't know much about the "autotarget" ai, but I believe disabling this would prevent them from shooting at enemies without being forced to do so via the 'dofire' command.