# void Wagon::SetLoyalty(int)

[Family: Wagon](/imperivm/en/CKS/familias/wagon/)

## Exact signature

```text
void Wagon::SetLoyalty(int)
```

## Description

CKS-exposed setter that validates a 0..100 loyalty value and writes it, scaled by ten, to the wagon's loyalty 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-ba3efad1061a0a.md)
- [JSON](/imperivm/CKS/api/entries/api-ba3efad1061a0a?lang=en)

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