# void Settlement::SetPopulation(int)

[Family: Settlement](/imperivm/en/CKS/familias/settlement/)

## Exact signature

```text
void Settlement::SetPopulation(int)
```

## Description

Writes current population, clamped to at most the settlement's maximum population.

## 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-34dd7ad8c4a268.md)
- [JSON](/imperivm/CKS/api/entries/api-34dd7ad8c4a268?lang=en)

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