mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
568 B
Plaintext
22 lines
568 B
Plaintext
// by commy2
|
|
|
|
#define POST_REPAIR_DAMAGE 0
|
|
|
|
private ["_vehicle", "_part", "_spareWheel", "_damage", "_name", "_string"];
|
|
|
|
_vehicle = _this select 0;
|
|
_part = _this select 1;
|
|
_spareWheel = _this select 2;
|
|
|
|
_damage = damage _spareWheel;
|
|
deleteVehicle _spareWheel;
|
|
|
|
[_vehicle, _part, _damage] call AGM_Repair_fnc_setHitPointDamage;
|
|
|
|
[player, "AmovPknlMstpSrasWrflDnon", 1] call AGM_Core_fnc_doAnimation;
|
|
|
|
_name = [_part] call AGM_Repair_fnc_getHitPointName;
|
|
_string = format [localize "STR_AGM_Repair_Repaired", _name];
|
|
|
|
[_string] call AGM_Core_fnc_displayTextStructured;
|