# SU.Buildings.GarrisonWarriors

## SU.Buildings.GarrisonWarriors(buildingID)

Setzt das durch die ID angegebene Gebäude auf "zu besetzen".

#### Parameter

* `buildingID`: ID des zu besetzenden Gebäudes

#### Rückgabewert

* 1: erfolgreicher Aufruf (dies bedeutet nur, dass die Parameter valide waren und nicht zwingend, dass das Gebäude nun besetzt wird, z.B. wenn es kein Militärgebäude war!)
* 0: sonst / Fehler

#### Beispiel

```lua
local success = SU.Buildings.GarrisonWarriors(buildingID)
```


---

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