ace_repair_fnc_canRepair
Description
Check if the repair action can be performed.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit that does the repairing | OBJECT | |
1 | Vehicle to repair | OBJECT | |
2 | Selected hitpoint or hitpointIndex | NUMBER | |
3 | Repair Action Classname | STRING |
Return Value
Description | Datatype(s) |
---|---|
Can Repair | BOOL |
Example
[player, car, "HitHull", "MiscRepair"] call ace_repair_fnc_canRepair
Authors
- Glowbal
ace_repair_fnc_getClaimObjects
Description
Returns array of required nearby repair objects (wheels/tracks).
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit that does the repairing | OBJECT | |
1 | Max range to seach from unit (meters) | NUMBER | |
2 | Array of arrays of classnames | ARRAY | |
3 | Sort objects by damage | BOOL | false |
Return Value
Description | Datatype(s) |
---|---|
Array of objects, or [] if not all available | ARRAY |
Example
[player, 5, [["Ace_Track"]]] call ace_repair_fnc_getClaimObjects
Authors
- PabstMirror
ace_repair_fnc_hasItems
Description
Check if the engineer has all items.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit that does the repairing | OBJECT | |
1 | Items required | ARRAY |
Return Value
Description | Datatype(s) |
---|---|
Has Items | BOOL |
Example
[engineer, [items]] call ace_repair_fnc_hasItems
Authors
- Glowbal
ace_repair_fnc_isEngineer
Description
Check if a unit is any engineer class.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT | |
1 | Class | NUMBER | 1 |
Return Value
Description | Datatype(s) |
---|---|
Is Engineer Class | BOOL |
Example
[unit, 1] call ace_repair_fnc_isEngineer
Authors
- Glowbal
- KoffeinFlummi
- commy2
ace_repair_fnc_isInRepairFacility
Description
Checks if a unit is in a repair facility.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT |
Return Value
Description | Datatype(s) |
---|---|
Is inside a repair facility | BOOL |
Example
player call ace_repair_fnc_isInRepairFacility
Authors
- Glowbal
ace_repair_fnc_isNearRepairVehicle
Description
Checks if a unit is near an engineering vehicle.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT |
Return Value
Description | Datatype(s) |
---|---|
Is near engineering vehicle | BOOL |
Example
[unit] call ace_repair_fnc_isNearRepairVehicle
Authors
- KoffeinFlummi
ace_repair_fnc_isRepairVehicle
Description
Check if vehicle is a engineering vehicle.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Vehicle | OBJECT |
Return Value
Description | Datatype(s) |
---|---|
Is engineering vehicle | BOOL |
Example
cursorObject call ace_repair_fnc_isRepairVehicle
Authors
- Glowbal
ace_repair_fnc_repair
Description
Starts the repair process.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit that does the repairing | OBJECT | |
1 | Vehicle to repair | OBJECT | |
2 | Selected hitpoint or hitpointIndex | NUMBER | |
3 | Repair Action Classname | STRING |
Return Value
Description | Datatype(s) |
---|---|
Succesful Repair Started | BOOL |
Example
[unit, vehicle, "hitpoint", "classname"] call ace_repair_fnc_repair
Authors
- Glowbal
- KoffeinFlummi
ace_repair_fnc_useItem
Description
Use Equipment if any is available.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT | |
1 | Item classname | STRING |
Return Value
Description | Datatype(s) |
---|---|
[Had Item to Use | BOOL |
Example
[unit, "classname"] call ace_repair_fnc_useItem
Authors
- Glowbal
ace_repair_fnc_useItems
Description
Use Equipment items if any is available.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT | |
1 | Item classnames | ARRAY |
Return Value
Description | Datatype(s) |
---|---|
[Had Item to Use | BOOL |
Example
[unit, ["classname1", "classname2"]] call ace_repair_fnc_useItems
Authors
- Glowbal