# WarriorsLib.UnGarrisonWarriors

## `WarriorsLib.UnGarrisonWarriors(buldingid, column, bowman, player)`

Ein Gebäude unbesetzen. Dies bewirkt, dass ein Militärgebäude Einheiten ausstößt.

`column`

Die Spalte der auszuwerfenden Einheit. Verwenden Sie 0 (Null), um die Einheit ganz links auszuwerfen (in Bezug auf die Seitenwand des ausgewählten Gebäudes) . Verwenden Sie -1, um so viele Einheiten wie möglich auszuwerfen. Dieser Wert liegt normalerweise im Bereich -1...5

`bowman`

Bei TRUE wird ein Bogenschütze ausgeworfen. Andernfalls wird ein Schwertkämpfer ausgeworfen. Dieser Parameter wird ignoriert, wenn die Spalte -1 ist.

#### Rückgabewert

* **Ab Version 1.5.0**: success \[0, 1]
* Davor: none

```lua
WarriorsLib.UnGarrisonWarriors(Buildings.GetFirstBuilding(1, Buildings.GUARDTOWERSMALL),-1,1,1)
```


---

# 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-warriorslib-de/warriorslib-functions/warriorslib.ungarrisonwarriors.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.
