Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

public function SetLayerCost(layer: int, cost: float): void;
public void SetLayerCost(int layer, float cost);

Parameters

layerLayer index.
costNew cost for the specified layer.

Description

Sets the cost for traversing over geometry of the layer type.

If you enable or disable the agent then the cost will be reset to the default layer cost.