PathNode
Associated namespace: sm.pathNode
A userdata object representing a PathNode in the game.
Functions:
Operations:
Operation | Description |
---|---|
PathNode == PathNode | Checks if two instances of PathNode refer to the same PathNode. |
connect(from, to)
Server only
Create a PathNode connection
Parameters:
Type | Name | Description |
---|---|---|
PathNode | from | PathNode to create connection from |
PathNode | to | PathNode to create connection to |
destroy(node)
Server only
Destroys a path node.
Parameters:
Type | Name | Description |
---|---|---|
PathNode | node | The path node to be destroyed. |
getPosition(node)
Server only
Get the world position of a path node
Parameters:
Type | Name | Description |
---|---|---|
PathNode | node | The path node |
Returns:
Type | Description |
---|---|
Vec3 | World position |