# GridNav
extends GridNav
| Function | Description | Client |
|---|---|---|
| bool CanFindPath(Vector_1, Vector_2) | Determine if it is possible to reach the specified end point from the specified start point. bool (vStart, vEnd) | ❌ |
| void DestroyTreesAroundPoint(Vector_1, float_2, bool_3) | Destroy all trees in the area(vPosition, flRadius, bFullCollision | ❌ |
| float FindPathLength(Vector_1, Vector_2) | Find a path between the two points an return the length of the path. If there is not a path between the points the returned value will be -1. float (vStart, vEnd ) | ❌ |
| table GetAllTreesAroundPoint(Vector_1, float_2, bool_3) | Returns a table full of tree HSCRIPTS (vPosition, flRadius, bFullCollision). | ❌ |
| float GridPosToWorldCenterX(int_1) | Get the X position of the center of a given X index | ❌ |
| float GridPosToWorldCenterY(int_1) | Get the Y position of the center of a given Y index | ❌ |
| bool IsBlocked(Vector_1) | Checks whether the given position is blocked | ❌ |
| bool IsNearbyTree(Vector_1, float_2, bool_3) | (position, radius, checkFullTreeRadius?) Checks whether there are any trees overlapping the given point | ❌ |
| bool IsTraversable(Vector_1) | Checks whether the given position is traversable | ❌ |
| void RegrowAllTrees() | Causes all trees in the map to regrow | ❌ |
| int WorldToGridPosX(float_1) | Get the X index of a given world X position | ❌ |
| int WorldToGridPosY(float_1) | Get the Y index of a given world Y position | ❌ |