So for a map I'm making I need units blinded, but I have no idea how to force a computer player to blind a unit, I assumed it was a AI script command, but I have no idea which one.
None.
An artist's depiction of an Extended Unit Death
There's a page on the wiki for it:
http://www.staredit.net/starcraft/Spells_%28Terran%29#Optical_FlareFor the computer to cast optical flare on an enemy unit, the unit must have at least 81 hit points, including protoss shield points. Attacking the Medic or running a Melee AI Script for the computer player controlling the Medic will cause the computer to use the spell more aggressively.
There isn't an AI Script for just telling the Medic to blind someone; you have to meet the above requirements in some controlled area.
Let me show you how to hump without making love.
81 hp or more. Have the unit attack the medic. Boom.
None.