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



Introduced in

Version:3.2

Description

Description:

Checks whether a unit is currently repairing a vehicle using the new repair system.

Note: Only works for infantry units, not for crew of repair vehicles. The player first has to approach a repair truck, to enter "repair mode", and then approach a damaged vehicle, to start the repair process. Only works with manual player repair, on the following vehicles: Patgb 360, NL Leopard 2 - ARV, and SE Bgbv 120 - ARV. In automatic vehicle repair mode, or in a trigger area, the command returns false.

Syntax

Syntax:isRepairing unit
Parameters:
  • unit: Unit - Works with player and AI, but since AI can never actually repair vehicles, this command will always return false for them.
Return Value:Boolean - If true, then player is currently repairing a vehicle.

Examples

Examples:
_repairing = isRepairing player

Additional Information

See also: setRepairParts, getRepairParts, setGlobalRepairRate
Multiplayer: 
Problems: 

Notes