# Sandbox.Npcs.BaseNpc.SetMovement

```csharp
void SetMovement(MovementLayer mover)
```

Hand the NPC to another of its movement layers, such as from walking to flying. Its other movers are
disabled and let go of the body where it is, and this one is enabled and takes it from there: a ground mover
drops to the floor first. A move that was under way is dropped, and a [Sandbox.Npcs.Tasks.MoveToTask](/api/Sandbox.Npcs.Tasks.MoveToTask) running
across the switch fails. Host only.

### Parameters

- `mover` (`MovementLayer`)

Declared in [Sandbox.Npcs.BaseNpc](/api/Sandbox.Npcs.BaseNpc).
Assembly: `Sandbox.Engine`.
