> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.map/su.map.takeland.md).

# SU.Map.TakeLand

## SU.Map.TakeLand(playerID, x, y, radius=0, takeLandMode=0, destroyBuildingsMode=0, killInhabitantsAndWorker=0)

Nimmt Land für den angegebenen Spieler ein. Je nach Optionen nur freies oder auch bereits besetztes Land.

#### Parameter

* `playerID [1-8]` (optional): Spieler-ID, **Index 0 ist ungültig!**
* `x,y`: Koordinaten
* `radius [0-74]` (optional): Radius
* `takeLandMode` (optional): 0 nur freies, 1 auch besetztes aber ungeschütztes (kein Turm in der Nähe), 2 jedes Land
* `destroyBuildingsMode` (optional): 0 nichts, 1 wie [Buildings.CrushBuilding](/s4-lua-api-de/library-functions/buildings/buildings.crushbuilding.md)(50% Rohstoffe erstattet), 2 wie [Buildings.Delete](/s4-lua-api-de/library-functions/buildings/buildings.delete.md) (keine Rohstoffe erstattet)
* `killInhabitantsAndWorker` (optional): 0 nichts, 1 tötet Insassen (=Soldaten) und Arbeiter (auch außerhalb des Gebäudes)

#### Beispiel

```lua
-- Spieler 2 bekommt das Land an (40,50) im Radius 25, aber nur ungeschütztes
SU.Map.TakeLand(2, 40, 50, 25, 1)
```
