sm.ai.isReachable

Check if the unit can reach the target position by moving along a path.

Kind: Function

Environments: Game

Game

sm.ai.isReachable( unit, position )

Open the full Game reference

Parameters:

Name Type Description
unit Unit The unit.
position Vec3 The target position.

Returns:

Type Description
boolean Returns true if the position is reachable.