> 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.entity/su.entity.getmaxhealth.md).

# SU.Entity.GetMaxHealth

## SU.Entity.GetMaxHealth(entityID)

Gibt die maximalen Lebenspunkte der angegebenen Entität zurück.

Eine **Entität** ist alles, was im Spiel als "physisches Objekt" vorkommt: d.h. **Objekte, Siedler, Gebäude, Fahrzeuge, Warenstapel, Tiere, etc.**, für Mapper also **quasi alles Auswählbare** (und noch mehr).

#### Notiz

* Liefert **nur bei Siedlern** richtige / sinnvolle Ergebnisse!

#### Parameter

* `entityID`: ID der Entität

#### Rückgabewert

* Lebenspunkte

#### Beispiel

```lua
local maxHealth = SU.Entity.GetMaxHealth(entityID)
```
