Someone asked about this a while ago, but no one really paid attention to the thread when I posted the answer.
All credit for this discovery goes to DrunkenWrestler. Currently, the only way to do it is with StarForge or a hex editor.
1. In the unit layer, place the building (or unit) that you would like to use. Most protoss and zerg buildings do not work.
2. Select it and hit enter or select properties from the right-click menu.
3. Look at the number in the Unit ID field and remember it
4. Delete the unit
5. Go to the sprites layer, place any sprite on the map
6. Select the sprite, and go to its properties (enter or right-click)
7. Change its sprite ID to the Unit ID you found earlier, and uncheck the "draw as sprite" flag. Also check the "disabled" flag.
This map contains all terran buildings and add-ons. Note that the Engineering bay, Comsat Station, and Supply Depot create a stonehenge sprite when disabled, and will crash Starcraft if they are visible when the game starts.
If the disabled flag is not set, then the unit will behave just like a unit in the unit layer, with the exception of the final note below.
Another Note: The disabled marine in this map cannot move or fire. I have tried using the enable doodad trigger on him, and about 80% of the time SC crashes (no connection with the unit being visible). The other 20% of the time the marine becomes active again and can fire and move. Disabling it after re-enabling it will cloak it and freeze him in place, like disabling a regular marine. For all buildings I have tried, enabling them with a trigger crashes Starcraft.
Another Note: If a custom HP setting is used for one of these units or buildings, its current HP will always be the default for that unit, and its max will be the custom value. For example, if in your map, marine HP is set to 100, a marine placed as a sprite will have 40/100 HP. If you set his HP to 1, he will have 40/1 HP. The disabled flag for the sprite does not have to be checked for this to happen.
All credit for this discovery goes to DrunkenWrestler. Currently, the only way to do it is with StarForge or a hex editor.
1. In the unit layer, place the building (or unit) that you would like to use. Most protoss and zerg buildings do not work.
2. Select it and hit enter or select properties from the right-click menu.
3. Look at the number in the Unit ID field and remember it
4. Delete the unit
5. Go to the sprites layer, place any sprite on the map
6. Select the sprite, and go to its properties (enter or right-click)
7. Change its sprite ID to the Unit ID you found earlier, and uncheck the "draw as sprite" flag. Also check the "disabled" flag.
This map contains all terran buildings and add-ons. Note that the Engineering bay, Comsat Station, and Supply Depot create a stonehenge sprite when disabled, and will crash Starcraft if they are visible when the game starts.
If the disabled flag is not set, then the unit will behave just like a unit in the unit layer, with the exception of the final note below.
Another Note: The disabled marine in this map cannot move or fire. I have tried using the enable doodad trigger on him, and about 80% of the time SC crashes (no connection with the unit being visible). The other 20% of the time the marine becomes active again and can fire and move. Disabling it after re-enabling it will cloak it and freeze him in place, like disabling a regular marine. For all buildings I have tried, enabling them with a trigger crashes Starcraft.
Another Note: If a custom HP setting is used for one of these units or buildings, its current HP will always be the default for that unit, and its max will be the custom value. For example, if in your map, marine HP is set to 100, a marine placed as a sprite will have 40/100 HP. If you set his HP to 1, he will have 40/1 HP. The disabled flag for the sprite does not have to be checked for this to happen.