mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed typo
This commit is contained in:
parent
78e7565121
commit
3f0909ddd5
@ -21,7 +21,7 @@ private ["_hitpointGroupConfig", "_hitpointGroup", "_postRepairDamage", "_return
|
||||
params ["_caller", "_target", "_hitPoint"];
|
||||
|
||||
// Get hitpoint groups if available
|
||||
_hitpointGroupConfig = configFile >> "CfgVehicles" >> typeOf _target >> QGVAR(hitpointGroup);
|
||||
_hitpointGroupConfig = configFile >> "CfgVehicles" >> typeOf _target >> QGVAR(hitpointGroups);
|
||||
_hitpointGroup = [];
|
||||
if (isArray _hitpointGroupConfig) then {
|
||||
// Loop through hitpoint groups
|
||||
@ -47,4 +47,8 @@ _return = false;
|
||||
};
|
||||
} forEach _hitpointGroup;
|
||||
|
||||
if (typeOf _target == "B_MRAP_01_F") then {
|
||||
diag_log format ["%1 - %2", _hitPoint, _hitpointGroup];
|
||||
};
|
||||
|
||||
_return
|
||||
|
@ -32,7 +32,7 @@ _hitPointDamage = _hitPointDamage max ([_unit] call FUNC(getPostRepairDamage));
|
||||
["setVehicleHitPointDamage", _vehicle, [_vehicle, _hitPoint, _hitPointDamage]] call EFUNC(common,targetEvent);
|
||||
|
||||
// Get hitpoint groups if available
|
||||
_hitpointGroupConfig = configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(hitpointGroup);
|
||||
_hitpointGroupConfig = configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(hitpointGroups);
|
||||
_hitpointGroup = [];
|
||||
if (isArray _hitpointGroupConfig) then {
|
||||
// Loop through hitpoint groups
|
||||
|
Loading…
Reference in New Issue
Block a user