# SU.Buildings.StartPlacement

## SU.Buildings.StartPlacement(buildingType\[, playerID=localPlayer])

Startet das Platzieren des angegebenen Gebäudes für den optional angegebenen Spieler\*, als hätte er es im Menü ausgewählt.

#### Notiz

* \* Wird kein Spieler angegeben, wird dies für alle Spieler ausgeführt, die diese Funktion aufrufen. Das Lua-Skript läuft nämlich bei allen Menschen gleichzeitig, d.h. wenn keine selbsterstellten Checks eingebaut wurden, betrifft das alle menschlichen Spieler!

#### Notiz

* Mana-Gebäude werden automatisch dem Volk entsprechend umgewandelt, da es ansonsten zu Abstürzen kommt. D.h. dass z.B. "Buildings.AGAVEFARMERHUT" für den Römer automatisch zu "Buildings.VINYARD" wird.

#### Parameter

* `buildingType`: [SU.Buildings](/s4-lua-api-de/su-library-functions/su.buildings.md)
* `playerID [1-8]` (optional): Spieler-ID, **Index 0 ist ungültig!**

#### Beispiel

```lua
SU.Buildings.StartPlacement(Buildings.AGAVEFARMERHUT)    // betrifft alle menschlichen Spieler!
SU.Buildings.StartPlacement(Buildings.AGAVEFARMERHUT, 3)    // nur Spieler 3
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.buildings/su.buildings.startplacement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
