User Tools

Site Tools


scripting-pathfinding

Scripting - PathFinding control function

Here can find some infomation about Enhanced Scripting function for PathFinding!

Route Type

X Destination Coord
Syntax PathFinding.Route.X
Description:
Set X destination coord for Route.
Type: int
In Object: PathFinding

Y Destination Coord
Syntax PathFinding.Route.Y
Description:
Set Y destination coord for Route.
Type: int
In Object: PathFinding

Debug Message
Syntax PathFinding.Route.DebugMessage
Description:
Set True for show debug message, False for not show.
Type: bool
In Object: PathFinding

Stop if Stuck
Syntax PathFinding.Route.StopIfStuck
Description:
Set True for stop pathfind if stuck, False for try to find new way.
Type: bool
In Object: PathFinding

Retry to find way
Syntax PathFinding.Route.MaxRetry
Description:
Set mumber of recalulation try if get stuck. Set 0 for no limit.
Type: int
In Object: PathFinding





Execute PathFind

Execute PathFind
Syntax PathFinding.Go(route)
Description:
Start pathfind. If destination is not valid (can't reach) return false
Returns: bool
In Object: PathFinding

scripting-pathfinding.txt · Last modified: 2018/09/30 23:03 by wikiadmin