Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:2.12

Description

Description:Applies an adjustment factor to the speed at which a unit recovers from
exhaustion
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.
A
  • For example, a factor of 0.5
will cause
  • causes the recovery to
take
  • takes twice as long, and a factor of 2
will make
  • makes it last
half as long. Default is 1
  • half as long (default: 1).
Return Value:Nothing

Examples

Examples:
player setFatigueRecoveryRate 0.8;

Additional Information

See also: getFatigueRecoveryRate
Multiplayer:
 

Problems:
 

Notes