# SU.Buildings.UnGarrisonAllBuildings

## SU.Buildings.UnGarrisonAllBuildings(playerID, smallTowers, bigTowers, castles)

Setzt alle angegebenen Gebäude vom Spieler auf "zu verlassen".

#### Notiz

* Diese Funktion ist ein Net-Event, d.h. sie sollte **nicht zu oft** aufgerufen werden!

#### Parameter

* `playerID [1-8]`: Spieler-ID, **Index 0 ist ungültig!**
* `smallTowers [0, 1]`: 1 um kleine Türme zu verlassen.
* `bigTowers [0, 1]`: 1 um große Türme zu verlassen.
* `castles [0, 1]`: 1 um Burgen zu verlassen.

#### Rückgabewert

none

#### Beispiel

```lua
-- leert nur alle großen Türme vom Spieler 3
SU.Buildings.UnGarrisonAllBuildings(3, 0, 1, 0)
```


---

# 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.ungarrisonallbuildings.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.
