# Tutorial.SelectNextBuilding

## `Tutorial.SelectNextBuilding(gebäudetyp)`

Wählt das nächste Gebäude des typen gebäudetyp aus, als würde man drauf klicken und zentriert die Kamera auf das Gebäude.

#### Rückgabewert

none

#### Beispiel

```lua
-- wählt den ersten kleinen Turm aus
-- sofern gewählt springe auf nächsten kleinen Turm wenn diese Funktion noch mal aufgerufen wird
Tutorial.SelectNextBuilding(Buildings.GUARDTOWERSMALL)
```


---

# 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/library-functions/tutorial/tutorial.selectnextbuilding.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.
