Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

SetLayerCost(layer: int, cost: float): void;
void SetLayerCost(int layer, float cost);
def SetLayerCost(layer as int, cost as float) as void

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.