Can a layer be hidden or invisible

I am making a game where command are supposed to be indistinguishable, by the non-owning player, from regular units. The easiest way to create the command option is by toggling a layer. Layer on, the unit is a commander. However I have not found a way to make the trait hidden without hiding the entire unit. Has anyone got ideas on this or solved this problem before?