The AI behaviour is performed in code, not in script.

All that bit of script does is start a dialogue, "CMB_AD_Comment_InvisibleEnemyTurn", which is a generic comment to the effect of "Show yourself!",