Passer au contenu principal

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.

Obtenir toutes les cellules adjacentes à une cellule donnée.

🎮 Méthode

fightAction:getAdjacentCells(cellId)

📝 Arguments

NomTypeDescription
cellIdintIdentifiant de la cellule.

💎 Valeur de retour

TypeDescription
{int}Liste des identifiants de cellules adjacentes.

💡 Exemple

-- Vérifier si une cellule adjacente est libre pour se positionner
local adj = fightAction:getAdjacentCells(fightCharacter:getCellId())
for _, cell in ipairs(adj) do
    if fightAction:isFreeCell(cell) then
        fightDebug:print("Cellule adjacente libre : " .. cell)
    end
end