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 SetAreaCost(areaIndex: int, areaCost: float): void;
public void SetAreaCost(int areaIndex, float areaCost);

Parameters

areaIndexArea cost.
areaCostNew cost for the specified area index.

Description

Sets the cost for traversing over areas of the area type.

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