# sm.pathNode.createPathNode

Create a PathNode

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pathNode.createPathNode( worldPosition, radius, temporary? )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `worldPosition` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The node's world position |
| `radius` | number | The node's radius |
| `temporary` *(optional)* | boolean | Temporary nodes are not saved and relies on lua garbage collection for removal (defaults to false). |

**Returns:**

| Type | Description |
| --- | --- |
| [PathNode](../Game-Script-Environment/Userdata/PathNode.md) | The path node |
