# void EnvWriteString(Building, str, str)

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

## Exact signature

```text
void EnvWriteString(Building, str, str)
```

## Description

Requests a string write under an environment key scoped to the specified building and its settlement. Arguments are the building, the key and the string.

## Usage notes

If the building cannot be resolved, this overload skips the write. The key path includes the game environment, settlement and building. Available dynamic verification covers one specific call; it establishes neither cross-game persistence nor duplicate-key rules. Those storage properties remain unresolved.

## Parameters and return type

**Return type:** `void`

| Position | Type |
| --- | --- |
| 1 | `Building` |
| 2 | `str` |
| 3 | `str` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`void EnvWriteString(str, str)`](/en/CKS/reference/api-06925e35e33897/)
- [`void EnvWriteString(Settlement, str, str)`](/en/CKS/reference/api-85691c6d928444/)
- [`void EnvWriteString(int, str, str)`](/en/CKS/reference/api-df426a07065c67/)

## Read and share

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

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