⚔️ fight_IsCellWalkable(cellId)
Vérifie si une cellule est marchable (pas d'obstacle, pas occupée, ligne de vue disponible).
fight_IsCellWalkable(cellId)
FightVérifie si une cellule est marchable (pas d'obstacle, pas occupée, ligne de vue disponible).
Paramètres
| Paramètre | Type | Description |
|---|---|---|
cellId |
int | L'ID de la cellule à vérifier |
Valeur de retour
bool - true si la cellule est marchable, false sinon
Exemple
function example_fightiscellwalkable()
-- Vérifier si une cellule est marchable
local targetCell = 456
if fight_IsCellWalkable(targetCell) then
fight_MoveToCell(targetCell)
else
fight_SendLogs("Cellule non marchable", "Red")
end
end
-- Appeler la fonction
example_fightiscellwalkable()