# Character.setFlying

Sets whether the character is flying.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
character:setFlying( state )
```

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

**Availability:** Server only

Will not activate flight for player characters.

**Parameters:**

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