core.libraries.thirdparty.niknaks.framework.sh_epath
(no description)
Functions
NikNaks.NodeGraph.CanMaybeReach(start_pos, end_pos, NODE_TYPE, HULL_SIZE, max_dis)
View source »A cheap lookup function. Checks to see if we can reach the position using nearby nodes. Note that this use zones and might have false positives on maps with a broken NodeGraph.
Parameters
-
start_pos
Vector
-
end_pos
Vector
-
NODE_TYPE
number
optional
-
HULL_SIZE
number
optional
-
max_dis
number
optional
-- Distance to nearest node
Returns
-
boolean
NikNaks.NodeGraph.FindHintNode(position, NODE_TYPE, HintType, HintGroup, Zone)
View source »Returns the nearest node with said HintType.
Parameters
-
position
Vector
-
NODE_TYPE
number
optional
-
HintType
number
-
HintGroup
number
optional
-
Zone
number
optional
Returns
-
ain_node
NikNaks.NodeGraph.FindNode(position, NODE_TYPE, Zone)
View source »Returns the nearest node
Parameters
-
position
Vector
-
NODE_TYPE
number
optional
-
Zone
number
optional
Returns
-
ain_node
NikNaks.NodeGraph.FindNodeWithHull(position, NODE_TYPE, HULL, Zone)
View source »Returns the nearest node with a connection matching the hull.
Parameters
-
position
Vector
-
NODE_TYPE
number
optional
-
HULL
number
-
Zone
number
optional
Returns
-
ain_node
NikNaks.NodeGraph.GetMapVersion()
View source »Returns the AIN map-version.
Returns
-
number
NikNaks.NodeGraph.GetNode(id)
View source »Returns the given ain_node at said ID.
Parameters
-
id
number
Returns
-
ain_node
NikNaks.NodeGraph.HasLoaded()
View source »Returns true if the nodegraph for the current map has loaded.
Returns
-
boolean
NikNaks.NodeGraph.PathFind(start_pos, end_pos, NODE_TYPE, HULL_SIZE, options, generator)
View source »A* pathfinding using the NodeGraph.
Parameters
-
start_pos
Vector or Entity
-
end_pos
Vector or Entity
-
NODE_TYPE
number
optional
-
HULL_SIZE
number
optional
-
options
table
optional
-
generator
function
optional
-- A funtion that allows you to calculate your own cost: func( node, fromNode, CAP_MOVE, elevator, length )
Returns
-
LPathFollower or boolean
NikNaks.NodeGraph.PathFindASync(start_pos, end_pos, callback, NODE_TYPE, options, HULL_SIZE, generator)
View source »A* pathfinding using the NodeGraph. Returns the result in the callback. Calculates 20 paths pr tick.
Parameters
-
start_pos
Vector or Entity
-
end_pos
Vector or Entity
-
callback
function
-- Returns the result. LPathFollower or false
-
NODE_TYPE
number
optional
-
options
table
optional
-
HULL_SIZE
number
optional
-
generator
function
optional
-- A funtion that allows you to calculate your own cost: func( node, fromNode, CAP_MOVE, elevator, length )
NikNaks.NodeGraph.Reload()
View source »Tries to reload the NodeGraph.