Introduced in

Version:2.12

Description

Description:Applies an adjustment factor to the speed at which a unit recovers from fatigue.

Syntax

Syntax:unit setFatigueRecoveryRate recovery
Parameters:
  • unit: Object - Unit to apply factor to (player or AI).
  • recovery: Number - Factor to apply to standard fatigue recovery rate. For example, a factor of 0.5 causes the recovery to takes twice as long, and a factor of 2 makes it last half as long (default: 1).
Return Value:Nothing

Examples

Examples:
player setFatigueRecoveryRate 0.8;

Additional Information

See also: getFatigueRecoveryRate
Multiplayer:
Problems:

Notes