🧭GridNav
Last updated
Last updated
You should always call `GridNav.ReleaseNpcMap` after you done with your build pathing
Name | Type | Description |
---|---|---|
Creates a new GridNavNpcMap
GridNavNpcMap
): nil
Name | Type | Description |
---|---|---|
Releases allocated memory for GridNavNpcMap
Name | Type | Description |
---|---|---|
Returns true
if the world position is traversable.
Vector
, end_: Vector
, ignoreTrees [?]
: boolean
, npc_map [?]
: GridNavNpcMap
|nil
): Vector[]
Build path from start to end. Returns an array with builded positions.
Vector
, end_: Vector
, ignoreTrees [?]
: boolean
, npc_map [?]
: GridNavNpcMap
|nil
): boolean
Lite version of GridNav.BuildPath function which just cheking if the path is exists.
[?]
: integer
, npc_map [?]
: GridNavNpcMap
|nil
, render_cell_flags [?]
: boolean
): boolean
Debug render of current GridNav with GridNavNpcMap (if provided)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
excluded_npcs [?]
CEntity[]
|nil
table with npc to exclude from the map. for example you want to exclude local hero if you build path from local hero position (default: nil)
includeTempTrees [?]
boolean
true
if you want include temp trees to the map e.g. furion's 1st spell, iron branch (default: true)
npc_map
map to release to release
pos
position to check
flag [?]
number
flag to check (default: 1)
start
position to start
end_
position to end
ignoreTrees [?]
boolean
true
if you want to exclude static trees from the pathing (default: false)
npc_map [?]
GridNavNpcMap
|nil
map with the npc's positions which works as additional mask for terrain map (default: nil)
start
position to start
end_
position to end
ignoreTrees [?]
boolean
true
if you want to exclude static trees from the pathing (default: false)
npc_map [?]
GridNavNpcMap
|nil
map with the npc's positions which works as additional mask for terrain map (default: nil)
grid_range [?]
integer
grid radius in "cell units" from Vector(0,0,0) (default: 50)
npc_map [?]
GridNavNpcMap
|nil
map with the npc's positions which works as additional mask for terrain map (default: nil)
render_cell_flags [?]
boolean
render the flags value for each not approachable cell (don't think you ever want to see this numbers, so ignore this arg) (default: false)