# void Obj::SetMaxHealth(int)

[Family: Obj](/imperivm/en/CKS/familias/obj/)

## Exact signature

```text
void Obj::SetMaxHealth(int)
```

## Description

SetMaxHealth and SetMaxStamina directly write their integer arguments at object [field] and [field].

## Parameters and return type

**Return type:** `void`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `int` |

## Read and share

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

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