# sm.pathfinder.getWorldPath

Find a path

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pathfinder.getWorldPath( world, start, destination, abilities?, costs? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.pathfinder.md#getworldpath)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The world to look in |
| `start` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The path start |
| `destination` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | 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 |
