set_cvar
Set an Unreal Engine console variable by name, verify the new value, and return an error if it does not exist.
Instructions
Sets a console variable via IConsoleManager and reads the value back. Uses IConsoleManager::Get().FindConsoleVariable(name)->Set(value, ECVF_SetByConsole). Honest error if the named cvar does not exist (unlike a raw console Exec which silently no-ops).
Returns: { set: bool, requested_value: string, name: string, value: string, string_value: string, int_value: int, float_value: float, bool_value: bool, help: string, flags: int, set_by: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Console variable name, e.g. "r.ScreenPercentage", "r.Shadow.MaxResolution". | |
| value | Yes | New value (string, number, or bool; coerced to the cvar's type). |