Actions
getShortestPath
(cells à éviter)
(cells à éviter)
Calculer le chemin le plus court en évitant des cellules spécifiques.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
(cells à éviter)
fightAction:getShortestPath(cellStart, cellEnd, avoidCells)
| Nom | Type | Description |
|---|---|---|
cellStart | int | Cellule de départ. |
cellEnd | int | Cellule de destination. |
avoidCells | {int} | Liste des cells à éviter. |
| Type | Description |
|---|---|
{int} | Liste des identifiants de cellules formant le chemin optimal. |
local path = fightAction:getShortestPath(myCell, enemyCell, {blockedCell1, blockedCell2})