Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:18.1.0

Description

Description:

Sets custom parameters in the navigation mesh, which affects how the currently loaded navigation mesh is updated using markNavmeshOutdated.

Note: In V19.1.0+, the command effect is global in a multiplayer session.

Syntax

Syntax:setNavMeshParams [param1, value1, ...]
Parameters:
  • param: String - Can be one of the following:
    • roadAreaType: Determines the custom area type that roads are marked with on navigation mesh update (optional).

      Note: For roadAreaType to be functional, roads have to be loaded with loadAIRoads.

    • crosswalkAreaType: Determines custom flags that crosswalks are marked with on navigation mesh update (optional).

  • value: Array of Number or Number - Flag array or single flag value. There are two flags, so the array combinations are: [] (equivalent to specifying 0), [1][2][1, 2] (equivalent to specifying 3) (optional, default: 0).
Return Value:Nothing

Examples

Examples:

The following two command calls are the same:

setNavMeshParams ["crosswalkAreaType", [1, 2]]
setNavMeshParams ["crosswalkAreaType", 3]
setNavMeshParams ["roadAreaType", [1], "crosswalkAreaType", [1, 2]]

Additional Information

See also: markNavmeshOutdated
Multiplayer:
Problems:

Notes