pathfinding.setWalkable

Section: Pathfinding (A*)

What it does

pathfinding.setWalkable sets Walkable on a pathfinding object. It takes worldX, worldZ and bool.

Signature

pathfinding.setWalkable(worldX, worldZ, bool)

Arguments

  • worldX
  • worldZ
  • bool

Example · generated

function start() {  pathfinding.setWalkable(1, 1, true);}

pathfinding.setWalkable is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

4 members in pathfinding