# void Unit::SetExperience(int)

[Family: Unit](/imperivm/en/CKS/familias/unit/)

## Exact signature

```text
void Unit::SetExperience(int)
```

## Description

Scripting VM bridge writing a raw experience value directly through the shared virtual experience setter.

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

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