> For the complete documentation index, see [llms.txt](https://srodevs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://srodevs.gitbook.io/docs/packets/agent/agent_entity_movement_req.md).

# AGENT\_ENTITY\_MOVEMENT\_REQ

* Opcode `0x7021`
* Direction `C > S`

```csharp
1   byte    HasDestination
if(HasDestination)
{
    1   ushort  Dst.RegionID
    if(Dst.RegionID & 0x8000) // IsDungeon
    {
        4   int     Dst.PosX
        4   int     Dst.PosY
        4   int     Dst.PosZ
    }
    else
    {
        2   short   Dst.PosX
        2   short   Dst.PosY
        2   short   Dst.PosZ
    }
}
else
{
    1   byte    ControlType // 1 = Walking, 0 = Spinning (visually bugged, replaced by AGENT_ENTITY_ROTATION_REQ)
    2   short   Angle
}
```
