# Shape.setCompromised

Set the state that determines if a shape is compromised.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:setCompromised( state )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Shape.md#setcompromised)

**Availability:** Server only

True to set compromised and false to set not compromised.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape. |
| `state` | boolean | The state. |
