mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add error logging
This commit is contained in:
parent
04db4add26
commit
0ff9a5bf64
@ -20,7 +20,7 @@
|
||||
params ["_caller", "_target", ["_drag", false]];
|
||||
|
||||
// cannot unload a unit not in a vehicle.
|
||||
if (vehicle _target == _target) exitWith {};
|
||||
if (_target call EFUNC(common,isAwake)) exitWith {};
|
||||
if (vehicle _target == _target) exitWith {WARNING_1("Unit [%1] not in vehicle",_target);};
|
||||
if (_target call EFUNC(common,isAwake)) exitWith {WARNING_1("Unit [%1] is awake",_target);};
|
||||
|
||||
["ace_unloadPersonEvent", [_target, vehicle _target, _caller], _target] call CBA_fnc_targetEvent;
|
||||
|
Loading…
Reference in New Issue
Block a user