Am I Crazy Or Did They Change How Stealth Works

There are 3 types of setting stealth on units. On the unit’s properties, using the action “SetStealth” and the action “UnitSetProperties”. I thought using the “SetStealth” action determined how far the target was invisible to other units depending on what range you set it too. While setting stealth on the unit’s properties or with the “UnitSetProperties” action simply removes them and their markers from the map depending on the range you set it too. Apparently not, they all work the same as “SetStealth”. Which comes to my problem. I dont want certain units to appear on the map without making them impossible to be detected by other units. Is there a action or setting to make this happen?