PathGridBlock
Marks a grid cell as a wall, or opens it.
PathGridBlock ( grid,x,y[,blocked] )
Parameters
- grid
- the grid's handle.
- x
- the cell's column, counting from 0.
- y
- the cell's row, counting from 0.
- blocked (optional)
- 1 for a wall, 0 to open the cell again.
Description
Marks a cell of a grid as a wall that paths can't go through, or opens it again. Change cells whenever the map changes, such as when a door opens or a wall is built; the next FindGridPath takes it into account.
