PathNode

Associated namespace: sm.pathNode

A userdata object representing a PathNode in the game.

Functions:

Operations:

OperationDescription
PathNode == PathNodeChecks if two instances of PathNode refer to the same PathNode.

connect(from, to)

Server only

Create a PathNode connection

Parameters:

TypeNameDescription
PathNodefromPathNode to create connection from
PathNodetoPathNode to create connection to

destroy(node)

Server only

Destroys a path node.

Parameters:

TypeNameDescription
PathNodenodeThe path node to be destroyed.

getPosition(node)

Server only

Get the world position of a path node

Parameters:

TypeNameDescription
PathNodenodeThe path node

Returns:

TypeDescription
Vec3World position