> 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.buildings/su.buildings.garrisonallbuildings.md).

# SU.Buildings.GarrisonAllBuildings

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

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

#### 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 besetzen.
* `bigTowers [0, 1]`: 1 um große Türme zu besetzen.
* `castles [0, 1]`: 1 um Burgen zu besetzen.

#### Rückgabewert

none

#### Beispiel

```lua
-- besetzt nur alle kleinen Türme vom Spieler 3
SU.Buildings.GarrisonAllBuildings(3, 1, 0, 0)
```
