Skip to main content

PathNode

Associated namespace: sm.pathNode

A userdata object representing a path node in the game.

Operations:

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

functions

connect

pathNode:connect( target )

Server-Only

Creates a PathNode connection.

Parameters:

  • pathNode (PathNode): The pathNode.
  • target (PathNode): The pathNode to connect to.

destroy

pathNode:destroy()

Server-Only

Destroys the PathNode.

Parameters:


getPosition

pathNode:getPosition()

Server-Only

Returns the pathNode's world position.

Parameters:

Returns:

  • (Vec3): The pathNode's world position.