> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# moveToWardCell

> Déplacer le personnage aussi près que possible d'une cellule cible.

Déplacer le personnage aussi près que possible d'une cellule cible.

#### 🎮 Méthode

```lua theme={null}
fightAction:moveToWardCell(cellId)
```

#### 📝 Arguments

| Nom      | Type  | Description                      |
| -------- | ----- | -------------------------------- |
| `cellId` | `int` | Identifiant de la cellule cible. |

#### 💎 Valeur de retour

| Type   | Description |
| ------ | ----------- |
| `void` | —           |

#### 💡 Exemple

```lua theme={null}
local cellId = fightAction:getNearestEnemy()
if fightAction:getDistance(fightCharacter:getCellId(), cellId) > 1 then
    fightAction:moveToWardCell(cellId)
end
```
