# Editor.MapDoc.MapEntity.SetKeyValue

```csharp
void SetKeyValue(string key, string value)
```

Sets the value for the key, e.g "model" could be set to "models/props_c17/oildrum001_explosive.mdl"

### Parameters

- `key` (`string`)
- `value` (`string`)

Declared in [Editor.MapDoc.MapEntity](/api/Editor.MapDoc.MapEntity).
Assembly: `Sandbox.Tools`.
