sm.pathfinder.getWorldPath
Find a path
Kind: Function
Environments: Game
Game
sm.pathfinder.getWorldPath( world, start, destination, abilities, costs )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
world |
World | The world to look in |
start |
Vec3 | The path start |
destination |
Vec3 | The path destination |
abilities (optional) |
table | Table of actor abilities { canWalk=boolean, canSwim=boolean }. Defaults to all abilities. |
costs (optional) |
table | Table of traverse area costs [1-10] { ground=number, water=number, chemicals=number, oil=number, lava=number }. Defaults to default costs. |
Returns:
| Type | Description |
|---|---|
| table | The path as table of PathNodes |