First make an extra unit owned by a computer. Like a drone or something off to the side of the map.
Make a location off to the side with the unit labled 'out'
Make a second location, use starforge or scmdraft to make the location 1x1 pixel (or really small like that)
Then use these triggers.
| Trigger |
| Conditions: |
| ¤ Always |
| Actions: |
¤ Move Location 'little' on zergling owned by current player at anywhere
|
¤ Move all zerg drone owned by 'player' to little
|
| ¤ preserve trigger |
If the zergling is burrowed then the unit will be ontop of it thus in location little
If the zergling is not burrowed then the unit will displaced thus not in location little.
| Trigger |
| Conditions: |
| ¤ Player Brings at exactly 0 drone to location little. |
| Actions: |
¤ Center View @ location little.
|
| ¤ Preserve Trigger |
| Trigger |
| Conditions: |
| ¤ Always |
| Actions: |
¤ Move all drone owned by current player at anywhere to 'out'
|
| ¤ Preserve Trigger |