PathNode

A userdata object representing a PathNode in the game.

Operations:

Operation Returns Description
PathNode == PathNode boolean Checks if two instances of PathNode refer to the same PathNode.

Server-only

connect

pathNode:connect( to )

Create a PathNode connection

Parameters:

Name Type Description
from PathNode PathNode to create connection from
to PathNode PathNode to create connection to

destroy

pathNode:destroy(  )

Destroys a path node.

Parameters:

Name Type Description
node PathNode The path node to be destroyed.

getPosition

pathNode:getPosition(  )

Get the world position of a path node

Parameters:

Name Type Description
node PathNode The path node

Returns:

Type Description
Vec3 World position