CanMoveHero(heroName, x, y, floorID = -1);
heroName
– the hero’s name x
, y
– the target tile’s coordinates floorID
– the floor number (-1 by default, which means the floor in which the hero is located)
This function returns true if the specified point can be reached by the hero. Otherwise it returns false. If the floor is not specified, the one in which the hero is currently located is used. This function can only be invoked for heroes controlled by the AI players.