# int GetClassHealt(str)

[Family: Global](/en/CKS/familias/global/)

## Exact signature

```text
int GetClassHealt(str)
```

## Description

Looks up a class by name and returns its class health value. Returns 0 when no class has that name.

## Usage notes

The name is spelled "Healt". A result of 0 tells that a class is not loaded; for example, a script can check that a hero class exists before changing maps. It is not a general class-lookup API, and the full health computation is not documented.

## Parameters and return type

**Return type:** `int`

| Position | Type |
| --- | --- |
| 1 | `str` |

## Read and share

- [Markdown](/exports/en/cks/api-a212fd51d9d4f4.md)
- [JSON](/CKS/api/entries/api-a212fd51d9d4f4?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
