Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:2.03

Description

Description:

Defines the multiplication factors that are applied to unit fatigue, during different levels of injury.

Syntax

Syntax:unit setFatigueMultiplier multipliers
Parameters:
  • unit: Object - Affected unit.
  • multipliers: Array - Multiplication factors that are applied at different damage levels. Examples:
    • [] - Resets the multipliers to their defaults ([1,1.33,2,3]).
    • [1] - Applies the same factor to all damage levels (no handicap).
    • [1,5] - Two stages: for up to 50% (no handicap), and over 50% (fatigue increases five times as fast).
    • [1,1,2,10] - Four stages: for 25%, 50%, 75%, and 100%, up to 50% damage no handicaps are applied, between 50% and 75% the unit gets tired twice as fast and hears half as well, and from 75% damage gets tired ten times faster.
Return Value:Nothing

Examples

Examples:
player setFatigueMultiplier [1,1,2,4,8];
player setFatigueMultiplier [1];

Additional Information

See also: getFatigueMultiplier, addToFatigueDutyBias, setFatigueScaling
Multiplayer:
Problems:

Notes