mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Improve some error msgs (#7588)
This commit is contained in:
parent
dd0ca9dc84
commit
a84af7ba9a
@ -18,9 +18,7 @@
|
||||
|
||||
params [["_unit", objNull, [objNull]], ["_damage", 0, [0]]];
|
||||
|
||||
if (!local _unit) exitWith {
|
||||
ERROR("Unit not local or null");
|
||||
};
|
||||
if (!local _unit) exitWith { ERROR_2("setStructuralDamage: Unit not local or null [%1:%2]",_unit,typeOf _unit); };
|
||||
|
||||
private _hitPointDamages = getAllHitPointsDamage _unit param [2, []];
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
params [["_unit", objNull, [objNull]]];
|
||||
|
||||
if (!local _unit) exitWith { ERROR("Unit not local or null"); };
|
||||
if (!local _unit) exitWith { ERROR_2("updateDamageEffects: Unit not local or null [%1:%2]",_unit,typeOf _unit); };
|
||||
|
||||
private _isLimping = false;
|
||||
|
||||
|
@ -23,9 +23,8 @@
|
||||
params [["_unit", objNull, [objNull]], ["_type", "hit", [""]], ["_severity", 0, [0]]];
|
||||
// TRACE_3("",_unit,_type,_severity);
|
||||
|
||||
if (!local _unit) exitWith {
|
||||
ERROR("Unit not local or null");
|
||||
};
|
||||
if (!local _unit) exitWith { ERROR_2("playInjuredSound: Unit not local or null [%1:%2]",_unit,typeOf _unit); };
|
||||
|
||||
if !(_unit call EFUNC(common,isAwake)) exitWith {};
|
||||
|
||||
// Handle timeout
|
||||
|
Loading…
Reference in New Issue
Block a user