I've had the same idea, but all LUA scripters I've asked said that you can't just lock and unlock units with LUAs.
Another thing is that those buttons show only up in GC mode, not in skirmish, but I guess that depends on how you code them.
_________________
