Auto-translated
`GetObjectNamesByType('PEASANT_HUT')` will return an array containing the names of all peasant huts, even if you didn't assign them names in the editor. It's better to use the `ReplaceDwelling` function to change the type of building.